diff options
author | Jim Meyering <meyering@redhat.com> | 2008-01-02 22:54:44 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-01-14 17:59:05 +0100 |
commit | 3fafc39a27e3989eeabaec610942bd9f81d2a6b0 (patch) | |
tree | a0a445eaa96a96f98d9f573fb91adc7cdfbd4cfd /src/lid.c | |
parent | f35f3801856404c5642508cc4d57c4a31de37258 (diff) | |
download | idutils-3fafc39a27e3989eeabaec610942bd9f81d2a6b0.tar.gz idutils-3fafc39a27e3989eeabaec610942bd9f81d2a6b0.tar.bz2 idutils-3fafc39a27e3989eeabaec610942bd9f81d2a6b0.zip |
fid: avoid buffer overrun.
* libidu/idread.c (deserialize_file_links): Fix typo (or think-o).
Here's what valgrind reported:
Invalid write of size 4
at 0x804A15A: deserialize_file_links (idread.c:132)
by 0x8049DEE: maybe_read_id_file (idread.c:74)
by 0x8049C64: read_id_file (idread.c:46)
by 0x80492FB: main (fid.c:170)
Address 0x41EB944 is 628 bytes inside a block of size 629 alloc'd
at 0x4022765: malloc (vg_replace_malloc.c:149)
by 0x80516BC: xnmalloc_inline (xmalloc.c:49)
by 0x80516EE: xmalloc (xmalloc.c:65)
by 0x8049E2F: deserialize_file_links (idread.c:87)
by 0x8049DEE: maybe_read_id_file (idread.c:74)
by 0x8049C64: read_id_file (idread.c:46)
by 0x80492FB: main (fid.c:170)
Signed-off-by: Jim Meyering <meyering@redhat.com>
Diffstat (limited to 'src/lid.c')
0 files changed, 0 insertions, 0 deletions