develooper Front page | perl.dbi.dev | Postings from August 2019

[perl5-dbi/dbi] eca7d7: Fix a NULL profile dereference indbi_profile()

From:
Tim Bunce
Date:
August 25, 2019 06:05
Subject:
[perl5-dbi/dbi] eca7d7: Fix a NULL profile dereference indbi_profile()
Message ID:
perl5-dbi/dbi/push/refs/heads/master/2c335f-9c9dd0@github.com
  Branch: refs/heads/master

  Home:   https://github.com/perl5-dbi/dbi

  Commit: eca7d7c8f43d96f6277e86d1000e842eb4cc67ff

      https://github.com/perl5-dbi/dbi/commit/eca7d7c8f43d96f6277e86d1000e842eb4cc67ff

  Author: Petr Písař <ppisar@redhat.com>

  Date:   2019-07-31 (Wed, 31 Jul 2019)



  Changed paths:

    M DBI.xs



  Log Message:

  -----------

  Fix a NULL profile dereference in dbi_profile()



hv_fetch() documentation requires checking for NULL and the code does

that. But then calls SvOK(profile) uncoditionally two lines later.

This patch fixes it.





  Commit: 9c9dd0722e9a208a701bb47fd198679b11512206

      https://github.com/perl5-dbi/dbi/commit/9c9dd0722e9a208a701bb47fd198679b11512206

  Author: Tim Bunce <Tim.Bunce@pobox.com>

  Date:   2019-08-22 (Thu, 22 Aug 2019)



  Changed paths:

    M DBI.xs



  Log Message:

  -----------

  Merge pull request #84 from ppisar/dbi_profile_null_profile



Fix a NULL profile dereference in dbi_profile()





Compare: https://github.com/perl5-dbi/dbi/compare/2c335f308ee2...9c9dd0722e9a




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About