-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace various sv_catpv(sv,"cstr") calls with len counted calls
-perf reasons, even though I guess most of the code is rarely called since they are error branches, do it anyways, it is only 1 more assembly op (2-4 bytes) vs not including len, and skips strlen() overhead -GDBM_File.xs -'sv_catpv(sv, ": ");' gdbm: Define error codes; provide the global $gdbm_errno variable. 8b8b122 10/11/2021 11:58:44 AM regcomp.c -'sv_catpv(substitute_parse, ")");' -"sv_catpv(substitute_parse, SvPVX(this_sequence));" len is known, its an an SV with contents gen by core, probably from regexp pl code, if it was passing control codes to console on the regular, I assume that would've been fixed long ago, therefore we not trying eliminate user's null chars 9d53c45 10/11/2012 11:49:31 PM PATCH: [perl #89774] multi-char fold + its fold in char class -'const char overflow_msg[] = "Code point' This was creating uncond a RW array on C stack from a RO global string, then sometimes passing ptr to C stk alloced array, to sv_catpv() -"sv_catpv(msg, prefix);" pass len to RO string 73b9584 8/20/2018 8:31:04 PM Move \p{user-defined} to core from utf8_heavy.pl -mg.c Revision: b35e4f8 12/14/2013 9:48:00 PM Fix HP-UX $! failure -"sv_catpv(sv, UNKNOWN_ERRNO_MSG);" is a const literal -perlio.c -add comment about the unusual but correct stack array, its length can be const computed so do it -pp_ctl.c 46fc3d4 4/22/1997 8:00:00 AM [inseparable changes from match from perl-5.003_97g to perl-5.003_97h] -"sv_catpv(namesv, unixname);" seems to be left over after converting this area of code from an unsafe "strcat()" design, use len since we know it
- Loading branch information
Showing
6 changed files
with
21 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters