Added check for total arguments size for variadic functions.
This commit is contained in:
13
test/err/bug2144.c
Normal file
13
test/err/bug2144.c
Normal file
@@ -0,0 +1,13 @@
|
||||
/* Bug #2144 - Maximum parameter size is not checked for variadic functions */
|
||||
|
||||
void a(...) {}
|
||||
|
||||
void b()
|
||||
{
|
||||
/* Argument size > 255 */
|
||||
a(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
|
||||
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
|
||||
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
|
||||
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
|
||||
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L);
|
||||
}
|
||||
Reference in New Issue
Block a user