Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/openssl/crypto/asn1 fix incorrect overrun check.



details:   https://anonhg.NetBSD.org/src/rev/b9175105b866
branches:  trunk
changeset: 534782:b9175105b866
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Aug 02 23:09:03 2002 +0000

description:
fix incorrect overrun check.
http://marc.theaimsgroup.com/?l=openssl-cvs&m=102831516309127&w=2
(thank todd!)

diffstat:

 crypto/dist/openssl/crypto/asn1/asn1_lib.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r cdf868862447 -r b9175105b866 crypto/dist/openssl/crypto/asn1/asn1_lib.c
--- a/crypto/dist/openssl/crypto/asn1/asn1_lib.c        Fri Aug 02 23:02:51 2002 +0000
+++ b/crypto/dist/openssl/crypto/asn1/asn1_lib.c        Fri Aug 02 23:09:03 2002 +0000
@@ -124,7 +124,7 @@
                (int)(omax+ *pp));
 
 #endif
-       if (*plength > (omax - (*pp - p)))
+       if (*plength > (omax - (p - *pp)))
                {
                ASN1err(ASN1_F_ASN1_GET_OBJECT,ASN1_R_TOO_LONG);
                /* Set this so that even if things are not long enough



Home | Main Index | Thread Index | Old Index