summaryrefslogtreecommitdiff
path: root/libcrypt/crypt.c
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2009-07-30 14:21:20 +0200
committerCarmelo Amoroso <carmelo.amoroso@st.com>2009-07-30 14:25:52 +0200
commitf14b97ca922f6afaa0d08e737259fc436af9b665 (patch)
tree556d80ca0bcc48e9d0e42613842664cdc18038f3 /libcrypt/crypt.c
parent67b2a605330caef8e0274794edca390b942a6e26 (diff)
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 'libcrypt/crypt.c')
0 files changed, 0 insertions, 0 deletions