Backported 026e9996d369a34966bd7ec33ebc41de2caf94e7

This commit is contained in:
hardening 2013-02-26 22:31:16 +01:00
parent 32cb59df28
commit 6bd5070b1f

View File

@ -63,7 +63,7 @@ int ber_write_length(STREAM* s, int length)
int _ber_skip_length(int length)
{
if (length > 0x7F)
if (length > 0x80)
return 3;
else
return 1;
@ -71,7 +71,7 @@ int _ber_skip_length(int length)
int ber_get_content_length(int length)
{
if (length - 1 > 0x7F)
if (length > 0x81)
return length - 4;
else
return length - 2;