-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Client, Internal Code
-
Labels:None
-
Fully Compatible
-
ALL
In BufBuilder there is a method appendNum(bool) defined as such:
void appendNum(bool j) { *((bool*)grow(sizeof(bool))) = j; }
The C++ standard explicitly states that the size of a bool is implementation defined. This method should be removed or rewritten, and the codebase should be audited for any uses of it.