commit | dce937f32c323be92844185e0db768dc91f0a728 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Sun Jul 23 08:01:43 2006 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Sun Jul 23 08:01:43 2006 +0000 |
tree | d1d6299019786facff9a4ea53ca39ff1f78e81f1 | |
parent | 9029b5f28934f78c5c13c62e8565f468955eb4df [diff] |
Ensure we don't write beyond errText. I think I got this right, but it definitely could use some review to ensure I'm not off by one and there's no possible overflow/wrap-around of bytes_left. Reported by Klocwork #1. Fix a problem if there is a failure allocating self->db. Found with failmalloc.