Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utf8.c: Postpone pointer subtraction until it turns out to be safe
In Perl_utf8_to_uv_msgs_helper_(), "curlen = send - s0;" used to be done earlier in this function, but this subtraction might underflow as "send >= s0" (that is, "e >= s0") does not necessarily hold true. Thanks to @mauke and @tonycoz for pointing this out.
- Loading branch information