Opened 14 years ago
Closed 14 years ago
#2803 closed Patches (invalid)
Boost.Python library source code mistake in class.cpp
Reported by: | Owned by: | Dave Abrahams | |
---|---|---|---|
Milestone: | Boost 1.39.0 | Component: | python USE GITHUB |
Version: | Boost 1.38.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Hi,
In class.cpp
line682: void* instance_holder::allocate(PyObject* self_, std::size_t holder_offset, std::size_t holder_size line683: { line684: assert(self_->ob_type->ob_type == &class_metatype_object); line685: objects::instance<>* self = (objects::instance<>*)self_; line686: line687: int total_size_needed = holder_offset + holder_size; line688: line689: if (-self->ob_size >= total_size_needed) line630: {
in line 689, if condition will always be false.
Note:
See TracTickets
for help on using tickets.