[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensc-commits
Subject:    [Opensc-commits] [OpenSC/OpenSC] 45ad44: fixed handling SC_ASN1_TAG_EOC from sc_asn1_read_t...
From:       GitHub <noreply () github ! com>
Date:       2018-03-30 6:28:54
Message-ID: 5abdd9263bd66_72ad2ae928817c0c5518 () hookshot-fe-5a11256 ! cp1-iad ! github ! net ! mail
[Download RAW message or body]

Branch: refs/heads/master
  Home:   https://github.com/OpenSC/OpenSC
  Commit: 45ad44e3115c2fda36c46f77b792f0f9da6152ab
      https://github.com/OpenSC/OpenSC/commit/45ad44e3115c2fda36c46f77b792f0f9da6152ab
  Author: Frank Morgner <frankmorgner@gmail.com>
  Date:   2018-03-30 (Fri, 30 Mar 2018)

  Changed paths:
    M src/libopensc/asn1.c
    M src/libopensc/card-gids.c
    M src/libopensc/card-mcrd.c
    M src/libopensc/card-openpgp.c
    M src/libopensc/card-piv.c
    M src/libopensc/ef-gdo.c
    M src/libopensc/iso7816.c
    M src/libopensc/pkcs15-pubkey.c
    M src/pkcs15init/pkcs15-myeid.c
    M src/tools/sc-hsm-tool.c

  Log Message:
  -----------
  fixed handling SC_ASN1_TAG_EOC from sc_asn1_read_tag

We can't check for `tag == SC_ASN1_TAG_EOC` directly, because this
would also be true for a tag of 0x80 (with `class ==
SC_ASN1_CLASS_CONSTRUCTED`). So what we do is we check for the output
buffer to be NULL!

fixes https://github.com/OpenSC/OpenSC/issues/1273




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Opensc-commits mailing list
Opensc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensc-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic