Blender Git Commit Log
Git Commits -> Revision 5ea1049
Revision 5ea1049 by Bastien Montagne (master) September 20, 2020, 16:41 (GMT) |
Sanitize type 'size' parameters in our read/write file code This patch tries to sanitize the types of our size parameters across our read and write code, which is currently fairly inconsistent (using `int`, `uint`, `size_t`...), by using `size_t` everywhere. Since in Blender file themselves we can only store chunk of size `MAX_INT`, added some asserts to ensure that as well. See {T79561} for details. Differential Revision: https://developer.blender.org/D8672 |
Commit Details:
Full Hash: 5ea1049e7520c0f369d2a76811410b1274699e81
Parent Commit: 86c5d1f
Lines Changed: +96, -83
8 Modified Paths:
/source/blender/blenkernel/intern/idprop.c (+2, -2) (Diff)
/source/blender/blenloader/BLO_read_write.h (+7, -7) (Diff)
/source/blender/blenloader/BLO_undofile.h (+2, -2) (Diff)
/source/blender/blenloader/intern/readfile.c (+38, -35) (Diff)
/source/blender/blenloader/intern/readfile.h (+6, -6) (Diff)
/source/blender/blenloader/intern/undofile.c (+1, -1) (Diff)
/source/blender/blenloader/intern/writefile.c (+39, -29) (Diff)
/source/blender/modifiers/intern/MOD_correctivesmooth.c (+1, -1) (Diff)
/source/blender/blenloader/BLO_read_write.h (+7, -7) (Diff)
/source/blender/blenloader/BLO_undofile.h (+2, -2) (Diff)
/source/blender/blenloader/intern/readfile.c (+38, -35) (Diff)
/source/blender/blenloader/intern/readfile.h (+6, -6) (Diff)
/source/blender/blenloader/intern/undofile.c (+1, -1) (Diff)
/source/blender/blenloader/intern/writefile.c (+39, -29) (Diff)
/source/blender/modifiers/intern/MOD_correctivesmooth.c (+1, -1) (Diff)