aboutsummaryrefslogtreecommitdiff
path: root/database.cc
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-16 13:38:43 -0700
committerCarl Worth <cworth@cworth.org>2009-10-16 13:38:43 -0700
commitdcebf35ec9d177720a120fd8601f966d169d2edf (patch)
treef09743d9ada344aa2d8f49de9fde4b7d7c4b0836 /database.cc
parent387a28281c8b8c8025e976d610cf0dae0f196894 (diff)
Avoid reading a byte just before our allocated buffer.
When looking for a trailing ':' to introduce a quotation we peek at the last character before a newline. But for blank lines, that's not where we want to look. And when the first line in our buffer is a blank line, we're underrunning our buffer. The fix is easy---just bail early on blank lines since they have no terms anyway. Thanks to valgrind for pointing out this error.
Diffstat (limited to 'database.cc')
0 files changed, 0 insertions, 0 deletions