[perl5-dbi/dbi] 9ffafa: Detect atoi() integer overflow.

[email protected] ("H.Merijn Brand" via dbi-dev)
Newsgroups perl.dbi.dev
Message-ID <perl5-dbi/dbi/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/perl5-dbi/dbi
  Commit: 9ffafab2369d7214f88967645feb3beadb900712
      https://github.com/perl5-dbi/dbi/commit/9ffafab2369d7214f88967645feb3beadb900712
  Author: Alexander Bluhm <[email protected]>
  Date:   2026-08-17 (Mon, 17 Aug 2026)

  Changed paths:
    M DBI.xs

  Log Message:
  -----------
  Detect atoi() integer overflow.

A nasty feature of atoi() is its missing overflow detection.  As
we expect integer between 0 and 99999, the number of the input
digits can be restricted to 5.  Then integer overflow is not possible.


  Commit: 44c73098d98c5836dd9f882e3eae6757b37e4b96
      https://github.com/perl5-dbi/dbi/commit/44c73098d98c5836dd9f882e3eae6757b37e4b96
  Author: H.Merijn Brand <[email protected]>
  Date:   2026-08-18 (Tue, 18 Aug 2026)

  Changed paths:
    M DBI.xs

  Log Message:
  -----------
  Merge pull request #191 from bluhm/atoi-strlen

Detect atoi() integer overflow.


Compare: https://github.com/perl5-dbi/dbi/compare/3f1e0676fa16...44c73098d98c

To unsubscribe from these emails, change your notification settings at https://github.com/perl5-dbi/dbi/settings/notifications
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.