Blender Git Commit Log

Git Commits -> Revision fa2ef64

Revision fa2ef64 by Bastien Montagne (master)
September 16, 2020, 13:04 (GMT)
Fix (unreported) buffer overflow in BLI_system_cpu_brand_string helper.

Since this buffer is used as an array of 12 32bits integers, and C++
string expect a NULL-terminated C-string, we need an extra char to
ensure last one is always NULL.

See D8906. Thanks to @brecht for noting this one too.

Commit Details:

Full Hash: fa2ef64d961959e46d35ff11d50cfc8f7bdf484a
Parent Commit: d067c13
Lines Changed: +1, -1

1 Modified Path:

/source/blender/blenlib/intern/system.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021