olddata is const char *, so changing it and not using it afterwards
is not useful anyway.
The warning:
dna_genfile.c:990:13: runtime error: applying non-zero offset 8 to
null pointer
Fix T81340 (partially)
Differential D9065
Fix T81340: UBSan: applying offset to null pointer Authored by Ankit Meel (ankitm) on Oct 1 2020, 1:18 AM.
Details
olddata is const char *, so changing it and not using it afterwards The warning: Fix T81340 (partially)
Diff Detail
Event TimelineComment Actions Note that this is a harmless warning, and if this wasn't simple to solve I think it could be suppressed/ignored. This patch breaks file loading: lib/tests/compositing/composite_materialindex.blend (for example), crashes as olddata needed to be incremented. Committed alternate cleanup: rBc1ae12bf5e3d: Cleanup: dna_genfile API for accessing struct member offsets This changes the API to return an offset instead of a pointer which sometimes starts off NULL. Comment Actions Oh sorry. I was completely oblivious to the existence of the for loop.
This is so wrong. |