[perl5-dbi/dbi] afba67: Fix integer overflow after strlen().

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

  Changed paths:
    M DBI.xs

  Log Message:
  -----------
  Fix integer overflow after strlen().

In preparse() the integer variable sln is used the store the return
value of strlen().  By that the real length is truncated to 32 bit
and made signed.  This way the overflow check sln > 306783375 can
be circumvented.  Make sln of type STRLEN.


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

  Changed paths:
    M DBI.xs

  Log Message:
  -----------
  Merge pull request #190 from bluhm/int-strlen

Fix integer overflow after strlen().


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

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.