Code was missing copying over MS signatures certificates when it is using a CMS format, this is fixed in the PR.
I've realized why it wasn't written in this way before, I didn't want to write all the deep copy functions, however now that we have CMS aswell I can't avoid it anymore.
Code was missing copying over MS signatures certificates when it is using a CMS format, this is fixed in the PR.
I've realized why it wasn't written in this way before, I didn't want to write all the deep copy functions, however now that we have CMS aswell I can't avoid it anymore.
Also closes https://github.com/avast/authenticode-parser/issues/19
Also found and fixed memory leak when parsing counter signature