Please sign in to comment.
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 <email@example.com>
- Loading branch information...