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:

Commit Details:

Full Hash: 5ea1049e7520c0f369d2a76811410b1274699e81
Parent Commit: 86c5d1f
Lines Changed: +96, -83

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2022