Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
Fully Compatible
-
ALL
Description
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.