qemu-e2k/tests
Stefan Weil 2917dce477 tests/cris: Fix some errors and potential crashes
These errors were reported by cppcheck:

tests/cris/check_openpf1.c:30: error:
Mismatching allocation and deallocation: f

tests/cris/check_openpf2.c:13: error:
Mismatching allocation and deallocation: f

tests/cris/check_stat3.c:16: error:
Buffer overrun possible for long cmd-line args

tests/cris/check_stat4.c:18: error:
Buffer overrun possible for long cmd-line args

The first two are obvious coding errors (fopen needs fclose, not close).

The last two may seem less important (nobody will start test code
with an argument of more than 1022 characters which raises a buffer
overrun). Fixing them nevertheless helps with static code checks
like those done by cppcheck.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2011-04-03 21:58:38 +02:00
..
alpha target-alpha: overflow condition for sublv and subqv 2009-04-10 21:27:15 +00:00
cris tests/cris: Fix some errors and potential crashes 2011-04-03 21:58:38 +02:00
lm32 lm32: opcode testsuite 2011-03-07 13:42:37 +01:00
Makefile lm32: opcode testsuite 2011-03-07 13:42:37 +01:00
hello-arm.c find -type f | xargs sed -i 's/[\t ]*$//g' # Yes, again. Note the star in the regex. 2007-09-17 08:09:54 +00:00
hello-i386.c Replace 'extern inline' with 'static inline' 2011-01-17 20:26:30 +00:00
hello-mips.c Simple test for mips/mipsel, based on a test by Alexander Voropay. 2006-12-14 14:48:11 +00:00
linux-test.c tests: Fix two memory leaks 2011-02-20 18:45:08 +01:00
pi_10.com added user mode libqemu usage example 2004-04-24 00:11:51 +00:00
qruncom.c Add missing 'static' attribute 2010-05-07 16:28:10 +00:00
runcom.c make runcom compile on recent distributions 2010-10-23 14:47:01 +00:00
sha1.c tests: Replace u_int8_t, u_int16_t, u_int32_t, u_int64_t by standard int types 2010-07-25 16:59:40 +02:00
test-arm-iwmmxt.s Implement iwMMXt instruction set for the PXA270 cpu. 2007-04-30 02:02:17 +00:00
test-i386-code16.S suppressed warnings 2008-01-31 15:19:39 +00:00
test-i386-muldiv.h find -type f | xargs sed -i 's/[\t ]$//g' # on most files 2007-09-16 21:08:06 +00:00
test-i386-shift.h Remove unnecessary trailing newlines 2008-12-13 09:32:43 +00:00
test-i386-ssse3.c Implement SSE4.1, SSE4.2 (x86). 2008-10-04 03:27:44 +00:00
test-i386-vm86.S find -type f | xargs sed -i 's/[\t ]*$//g' # Yes, again. Note the star in the regex. 2007-09-17 08:09:54 +00:00
test-i386.c disable test_enter on i386, it is broken 2010-10-23 14:46:58 +00:00
test-i386.h x86_64 test program 2005-03-02 22:19:12 +00:00
test-mmap.c Update to a hopefully more future proof FSF address 2009-07-16 20:47:01 +00:00
test_path.c fix test_path 2010-10-23 14:47:06 +00:00
testthread.c update 2003-04-11 00:13:04 +00:00