Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug in kore_block_get_bool (#830)
We discovered a bug in the kore_block_get_bool function. It was reading 8 bytes and then casting the result to a bool, but a block containing a boolean as a child has one byte that is determined and 7 unspecified bytes that contain padding. As a result, if the padding was nonzero, the function would return true even if the injection actually contained the boolean `false`. This should fix that bug by casting the pointer to `bool*` before reading.
- Loading branch information