summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp13/task1.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-03-30 19:46:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-03-30 19:46:38 +0000
commita841314365099df23b3cd1ea7e6c01f8174dda17 (patch)
treec4c17871a212bcc0a071d1ee4fd31c21b44437c5 /testsuites/sptests/sp13/task1.c
parent2004-03-30 David Querbach <querbach@realtime.bc.ca> (diff)
downloadrtems-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 'testsuites/sptests/sp13/task1.c')
-rw-r--r--testsuites/sptests/sp13/task1.c4
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,