Blender Git Commit Log

Git Commits -> Revision c1ae12b

Revision c1ae12b by Campbell Barton (master)
October 1, 2020, 04:32 (GMT)
Cleanup: dna_genfile API for accessing struct member offsets

- Rename `find_elem` to `elem_offset` (matching `elem_exists`).

- Remove unused `SDNA_StructMember` return argument.

- Return an offset instead of a pointer which was being converted
back into an offset by one caller,
in this case there was no way to tell the difference between
and element that doesn't exist and a struct member
at the start of the array.

Resolves UBSan warning raised in T81340.

Commit Details:

Full Hash: c1ae12bf5e3dd77e1b814869dcb5766a0a51d594
Parent Commit: 2c31745
Lines Changed: +27, -38

2 Modified Paths:

/source/blender/blenloader/intern/readfile.c (+1, -0) (Diff)
/source/blender/makesdna/intern/dna_genfile.c (+26, -38) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021