Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1414901 - part 1a - make mozWritePoison respect its documentation…
…; r=Waldo The documentation for mozWritePoison says that only an even number of sizeof(uintptr_t) bytes are overwritten; any trailing bytes are not touched. This documentation doesn't correspond to how the function actually works. The function as written will happily overwrite trailing bytes and any bytes not contained in the object, if the passed-in size isn't divisible by sizeof(uintptr_t). Let's fix that.
- Loading branch information