ASN1: fail when encountering unsupported tags

This commit is contained in:
terrafrost 2021-04-03 15:54:27 -05:00
parent 10cee4514c
commit e02c8452d4

View File

@ -578,7 +578,9 @@ class File_ASN1
$current['content'] = class_exists('DateTime') ? $current['content'] = class_exists('DateTime') ?
$this->_decodeDateTime(substr($content, $content_pos), $tag) : $this->_decodeDateTime(substr($content, $content_pos), $tag) :
$this->_decodeUnixTime(substr($content, $content_pos), $tag); $this->_decodeUnixTime(substr($content, $content_pos), $tag);
break;
default: default:
return false;
} }
$start+= $length; $start+= $length;