[perl5-dbi/dbi] c6d410: Fix crashing when calling warn() and croak() funct...

Tim Bunce <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase.devel
Message-ID <592c99f8dc4c3_3a723fb7aee39c343432b@hookshot-fe6-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/perl5-dbi/dbi
  Commit: c6d410d1bafa6876e6a346a2727217fa2c3feb30
      https://github.com/perl5-dbi/dbi/commit/c6d410d1bafa6876e6a346a2727217fa2c3feb30
  Author: Pali <[email protected]>
  Date:   2017-02-14 (Tue, 14 Feb 2017)

  Changed paths:
    M DBI.xs
    M dbipport.h

  Log Message:
  -----------
  Fix crashing when calling warn() and croak() functions

Functions warn() and croak() take first parameter printf-like format.
Arbitrary string can cause perl crash when contains one or more '%'.

Format "%s" should be used to pass abitrary string parameter.


  Commit: b8b101438731de40b89d339208fe9606cfcbe68d
      https://github.com/perl5-dbi/dbi/commit/b8b101438731de40b89d339208fe9606cfcbe68d
  Author: Tim Bunce <[email protected]>
  Date:   2017-05-29 (Mon, 29 May 2017)

  Changed paths:
    M DBI.xs
    M dbipport.h

  Log Message:
  -----------
  Merge pull request #44 from pali/format

Fix risk of crashing via printf when calling warn() and croak() functions


Compare: https://github.com/perl5-dbi/dbi/compare/ad36110ff5a2...b8b101438731
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.