diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-03-30 19:46:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-03-30 19:46:38 +0000 |
commit | a841314365099df23b3cd1ea7e6c01f8174dda17 (patch) | |
tree | c4c17871a212bcc0a071d1ee4fd31c21b44437c5 /testsuites/sptests/sp13/task1.c | |
parent | 2004-03-30 David Querbach <querbach@realtime.bc.ca> (diff) | |
download | rtems-a841314365099df23b3cd1ea7e6c01f8174dda17.tar.bz2 |
2004-03-30 David Querbach <querbach@realtime.bc.ca>
PR 595/tests
* sp13/fillbuff.c, sp13/init.c, sp13/putbuff.c, sp13/system.h,
sp13/task1.c, sp13/task2.c: Fill_buffer() in fillbuff.c overruns the
supplied buffer due to confusion in the definition of MESSAGE_SIZE.
Some files in the sp13 test treat MESSAGE_SIZE as a count of bytes,
others treat it as a count of longs.
Diffstat (limited to '')
-rw-r--r-- | testsuites/sptests/sp13/task1.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuites/sptests/sp13/task1.c b/testsuites/sptests/sp13/task1.c index e10452377a..d48abf4209 100644 --- a/testsuites/sptests/sp13/task1.c +++ b/testsuites/sptests/sp13/task1.c @@ -23,9 +23,7 @@ char big_send_buffer[2048]; char big_receive_buffer[2048]; -long buffer[ 4 ]; - -#define MESSAGE_SIZE (sizeof(long) * 4) +long buffer[ MESSAGE_SIZE / sizeof(long) ]; void dope_buffer(unsigned char *buff, int buff_size, |