]> granicus.if.org Git - python/commit
Code review of the new buffer protocol. Mostly add questions that should
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 19 Aug 2007 04:23:20 +0000 (04:23 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 19 Aug 2007 04:23:20 +0000 (04:23 +0000)
commitfaa54a392951468090f0095ffa927b16fcb20ca4
treea8586a5cc833217e6b1eaf4d052313475534178a
parent1836358c016cd7f5117f4f34fa3a27c5701e8265
Code review of the new buffer protocol.  Mostly add questions that should
be answered with the comments removed.

There are many places that require checks when doing arithmetic for memory
sizes when allocating memory.  Otherwise, overflow is possible with
a subsequent crash.

Fix SF #1777057 which was a result of not initializing the new BufferError
properly.  Had to update the test for exceptions for BufferError too.
Include/bytesobject.h
Include/object.h
Lib/test/exception_hierarchy.txt
Modules/arraymodule.c
Objects/abstract.c
Objects/bufferobject.c
Objects/bytesobject.c
Objects/exceptions.c
Objects/memoryobject.c