]> granicus.if.org Git - shadow/commit
Fix buffer overflow if NULL line is present in db.
authorTomas Mraz <tmraz@fedoraproject.org>
Fri, 31 Mar 2017 14:25:06 +0000 (16:25 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Fri, 31 Mar 2017 14:25:06 +0000 (16:25 +0200)
commit954e3d2e7113e9ac06632aee3c69b8d818cc8952
tree1ebf6478785482d7b99a2a00ad184109f2ee736c
parent830ae266c4753d99c5a8b96f727ebaf19cd0cbec
Fix buffer overflow if NULL line is present in db.

If ptr->line == NULL for an entry, the first cycle will exit,
but the second one will happily write past entries buffer.
We actually do not want to exit the first cycle prematurely
on ptr->line == NULL.
Signed-off-by: Tomas Mraz <tmraz@fedoraproject.org>
lib/commonio.c