diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-11-30 10:14:32 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-11-30 12:09:24 +0100 |
commit | 7339a3d39035ccc7541fbbddc858121ce464dc68 (patch) | |
tree | c9fa58eb6245f6b7c79db995b62cac2bc1a39de5 /install-sh | |
parent | b18b1e80e9f3359fdfc06dc36dd4f0c15e9344af (diff) |
vcl mscrypto PDF sign: fix typo in GetDERLengthOfLength()
When id-aa-signingCertificateV2 had a value that was larger than 255
bytes, then the header size is expected to be 4 bytes, but it was only
3. The length part of the header is 3 bytes: one byte declaring the
length-of-length, and 3 bytes for the length. We added this additional
byte to the result too early, that way we counted that e.g. 278 (the
number) fits into a single uint8_t, which is not the case.
Also introduce named constants for some of the hardwired numbers in the
code for better readability.
Change-Id: I816236e5ac561c9d21bd9df703385ee2201482e7
Diffstat (limited to 'install-sh')
0 files changed, 0 insertions, 0 deletions