(sizeof == 0) test in dxf_*_new functions using malloc.
Bug #696227 reported by
Bert Timmerman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libDXF |
Fix Committed
|
Low
|
Bert Timmerman |
Bug Description
Hi,
I read somewhere that the return value of sizeof() should not be trusted blindly for it could return the size of the pointer, and not the size of the struct.
We could consider this an error if the test is true.
Changed in libdxf: | |
milestone: | none → 0.0.2 |
description: | updated |
description: | updated |
Changed in libdxf: | |
assignee: | nobody → Bert Timmerman (bert-timmerman) |
Changed in libdxf: | |
status: | New → In Progress |
importance: | Undecided → Low |
Changed in libdxf: | |
milestone: | 0.0.2 → 0.0.1 |
summary: |
- (sizeof == 0) test in dxf_malloc_* functions. + (sizeof == 0) test in dxf_*_new functions using malloc. |
Changed in libdxf: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.