diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2009-07-30 14:21:20 +0200 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2009-07-30 14:21:20 +0200 |
commit | 8204eb7eb419af866fe28ae6babe9af706656daa (patch) | |
tree | 3d468bf5c430c7734567da35074e82ecfb421c44 /libc/misc/regex/regex_internal.h | |
parent | 7134e8aba545d434feca5d2aa990ec59895979df (diff) | |
download | uClibc-alpine-8204eb7eb419af866fe28ae6babe9af706656daa.tar.bz2 uClibc-alpine-8204eb7eb419af866fe28ae6babe9af706656daa.tar.xz |
test_librt: Fix shmtest.c test case
Fix wrong use of sizeof (array) to retrieve the number
of elements; it was causing accessing beyond the array's boundaries.
Below the output of the testcase showing an attempt to read beyond
the array (actually 11 elements in size).
root@amorosoc:/home/carmelo# ./shmtest
Compare memory error : Offset 11, local 4262624, shm 224
Compare memory error : Offset 12, local 693493828, shm 68
Compare memory error : Offset 13, local 693489168, shm 16
Compare memory error : Offset 14, local 693826444, shm 20
.....
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/misc/regex/regex_internal.h')
0 files changed, 0 insertions, 0 deletions