]> granicus.if.org Git - python/commit
Ensure we don't write beyond errText. I think I got this right, but
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 23 Jul 2006 08:01:43 +0000 (08:01 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 23 Jul 2006 08:01:43 +0000 (08:01 +0000)
commitdce937f32c323be92844185e0db768dc91f0a728
treed1d6299019786facff9a4ea53ca39ff1f78e81f1
parent9029b5f28934f78c5c13c62e8565f468955eb4df
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.
Modules/_bsddb.c