Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: a47653cebd2854e3799a65884748812db6622979
https://github.com/Perl/perl5/commit/a47653cebd2854e3799a65884748812db6622979
Author: TAKAI Kousuke <[email protected]>
Date: 2025-01-12 (Sun, 12 Jan 2025)
Changed paths:
M utf8.c
Log Message:
-----------
utf8.c: Change the type of some length variables from SSize_t to Size_t in
Perl_utf8_to_uv_msgs_helper_()
Changed the type of `curlen`, `expectlen`, and `avail_len` from `SSize_t`
to `Size_t`, to shut up compiler warnings about comparison between
same-sized signed and unsigned values on 32-bit build.
These variables represent the number of bytes which cannot be negative,
so it should be safe to be unsigned type.
Commit: 67ed0f3293b3988a06d6ee6920d773f6b414b8fc
https://github.com/Perl/perl5/commit/67ed0f3293b3988a06d6ee6920d773f6b414b8fc
Author: TAKAI Kousuke <[email protected]>
Date: 2025-01-12 (Sun, 12 Jan 2025)
Changed paths:
M utf8.c
Log Message:
-----------
utf8.c: Fixed formatting specifier for croak() in Perl_utf8_to_uv_msgs_helper_
This call of croak() used to attempt to display U32 variable
`this_problem` with %d format specifier, which triggered a compiler
warning on 32-bit build where U32 is typedef'ed to unsigned long.
Commit: 8748799a65f16a2abcfd6fb426fb1ce21d903b3a
https://github.com/Perl/perl5/commit/8748799a65f16a2abcfd6fb426fb1ce21d903b3a
Author: TAKAI Kousuke <[email protected]>
Date: 2025-01-12 (Sun, 12 Jan 2025)
Changed paths:
M utf8.c
Log Message:
-----------
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.
Compare: https://github.com/Perl/perl5/compare/e7475a138717...8748799a65f1
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications