Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 7035863f5fa4306e58c8157b2a5893ba5e0f1eaf
      
https://github.com/Perl/perl5/commit/7035863f5fa4306e58c8157b2a5893ba5e0f1eaf
  Author: TAKAI Kousuke <[email protected]>
  Date:   2021-07-25 (Sun, 25 Jul 2021)

  Changed paths:
    M MANIFEST
    M numeric.c
    A t/op/numify.t

  Log Message:
  -----------
  Perl_my_atof3: disallow double signs and spaces between a sign and number

Perl_my_atof3 used to pass a substring after the first (optional) sign
to (S_)strtod, which causes wrong numifications for strings like "-+3"
or "+ 0x123" (for the latter case, while Perl_my_atof3 already had
the code to block "0x" prefixes, this string will slip through due to
the space character in it).

For GH #18584.


  Commit: e79f3c064561c5843af40cda89f98bb44f956729
      
https://github.com/Perl/perl5/commit/e79f3c064561c5843af40cda89f98bb44f956729
  Author: TAKAI Kousuke <[email protected]>
  Date:   2021-07-25 (Sun, 25 Jul 2021)

  Changed paths:
    M numeric.c

  Log Message:
  -----------
  Perl_my_atof3: disallow double signs for Inf/NaN

Perl_my_atof3 used to call S_my_atof_infnan after parsing sign character,
but this led Inf/NaN with double signs (e.g. "+-Inf") to be wrongly accepted
because S_my_atof_infnan will also parse sign itself.

Also improved comment per suggestion from @hvds.


  Commit: 6738839e92f792ac9f6aa55589870decb54a9bfa
      
https://github.com/Perl/perl5/commit/6738839e92f792ac9f6aa55589870decb54a9bfa
  Author: TAKAI Kousuke <[email protected]>
  Date:   2021-07-25 (Sun, 25 Jul 2021)

  Changed paths:
    M t/op/numify.t

  Log Message:
  -----------
  t/op/numify.t: More tests to check if invalid Inf/NaNs are not numified


Compare: https://github.com/Perl/perl5/compare/d44f69e7cc06...6738839e92f7

Reply via email to