aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/59_function_array.expect
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-03-29 11:28:02 +0300
committerseyko <seyko2@gmail.com>2015-03-29 11:28:02 +0300
commitd80593bc4d4381331453d96d03c11d70247e2d70 (patch)
treebf3a0ae04653b6d87726e1d2a99b1aa44190b279 /tests/tests2/59_function_array.expect
parentf2cfc07554c698dcd2f12dab223aece4d40198c2 (diff)
downloadtinycc-d80593bc4d4381331453d96d03c11d70247e2d70.tar.gz
tinycc-d80593bc4d4381331453d96d03c11d70247e2d70.tar.bz2
fix for the bcheck.o (bug #14958)
- care about __attribute__ redefinition in the system headers - an invalid pointer must be returned when (addr >= e->size), and not (addr > e->size) A test program: #include <stdio.h> #include <stdlib.h> int main () { int v[10]; fprintf(stderr, "&v[0] = %p\n", &v[0]); fprintf(stderr, "&v[10] = %p\n", &v[10]); exit(1); return 0; } // tcc -b test.c The output before a patch: &v[0] = 0xbf929d8c &v[10] = 0xbf929db4 The output after a patch: &v[0] = 0xbff6e33c &v[10] = 0xfffffffe
Diffstat (limited to 'tests/tests2/59_function_array.expect')
0 files changed, 0 insertions, 0 deletions