Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent length wraparound in RichString_rewind()
The computed length could wrap to a negative integer, causing undefined behavior. (Currently it would cause out-of-bound array access due to a signed length property in RichString. The length property should be migrated to an unsigned size_t type, but that would be done in a later commit.) Signed-off-by: Kang-Che Sung <[email protected]>
- Loading branch information