Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

xtreemos
Tuesday, February 9th, 2010 at 3:58:33am MST 

  1. Index: openssl/crypto/asn1/asn1.h
  2. RCS File: /v/openssl/cvs/openssl/crypto/asn1/asn1.h,v
  3. rcsdiff -q -kk '-r1.128.2.11' '-r1.128.2.12' -u '/v/openssl/cvs/openssl/crypto/asn1/asn1.h,v' 2>/dev/null
  4. --- asn1.h      2009/01/28 12:35:10   1.128.2.11
  5. +++ asn1.h      2009/03/25 10:35:57   1.128.2.12
  6. @@ -1218,6 +1218,7 @@
  7.  #define ASN1_R_BAD_OBJECT_HEADER                      102
  8.  #define ASN1_R_BAD_PASSWORD_READ                      103
  9.  #define ASN1_R_BAD_TAG      104
  10. +#define ASN1_R_BMPSTRING_IS_WRONG_LENGTH               210
  11.  #define ASN1_R_BN_LIB           105
  12.  #define ASN1_R_BOOLEAN_IS_WRONG_LENGTH    106
  13.  #define ASN1_R_BUFFER_TOO_SMALL                                 107
  14. @@ -1307,6 +1308,7 @@
  15.  #define ASN1_R_UNABLE_TO_DECODE_RSA_KEY                         157
  16.  #define ASN1_R_UNABLE_TO_DECODE_RSA_PRIVATE_KEY                 158
  17.  #define ASN1_R_UNEXPECTED_EOC         159
  18. +#define ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH   211
  19.  #define ASN1_R_UNKNOWN_FORMAT         160
  20.  #define ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM                 161
  21.  #define ASN1_R_UNKNOWN_OBJECT_TYPE                162
  22. Index: openssl/crypto/asn1/asn1_err.c
  23. RCS File: /v/openssl/cvs/openssl/crypto/asn1/asn1_err.c,v
  24. rcsdiff -q -kk '-r1.54.2.4' '-r1.54.2.5' -u '/v/openssl/cvs/openssl/crypto/asn1/asn1_err.c,v' 2>/dev/null
  25. --- asn1_err.c  2008/04/03 23:03:43       1.54.2.4
  26. +++ asn1_err.c  2009/03/25 10:35:57       1.54.2.5
  27. @@ -195,6 +195,7 @@
  28.  {ERR_REASON(ASN1_R_BAD_OBJECT_HEADER)    ,"bad object header"},
  29.  {ERR_REASON(ASN1_R_BAD_PASSWORD_READ)    ,"bad password read"},
  30.  {ERR_REASON(ASN1_R_BAD_TAG)              ,"bad tag"},
  31. +{ERR_REASON(ASN1_R_BMPSTRING_IS_WRONG_LENGTH),"bmpstring is wrong length"},
  32.  {ERR_REASON(ASN1_R_BN_LIB)               ,"bn lib"},
  33.  {ERR_REASON(ASN1_R_BOOLEAN_IS_WRONG_LENGTH),"boolean is wrong length"},
  34.  {ERR_REASON(ASN1_R_BUFFER_TOO_SMALL)     ,"buffer too small"},
  35. @@ -284,6 +285,7 @@
  36.  {ERR_REASON(ASN1_R_UNABLE_TO_DECODE_RSA_KEY),"unable to decode rsa key"},
  37.  {ERR_REASON(ASN1_R_UNABLE_TO_DECODE_RSA_PRIVATE_KEY),"unable to decode rsa private key"},
  38.  {ERR_REASON(ASN1_R_UNEXPECTED_EOC)       ,"unexpected eoc"},
  39. +{ERR_REASON(ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH),"universalstring is wrong length"},
  40.  {ERR_REASON(ASN1_R_UNKNOWN_FORMAT)       ,"unknown format"},
  41.  {ERR_REASON(ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM),"unknown message digest algorithm"},
  42.  {ERR_REASON(ASN1_R_UNKNOWN_OBJECT_TYPE)  ,"unknown object type"},
  43. Index: openssl/crypto/asn1/tasn_dec.c
  44. RCS File: /v/openssl/cvs/openssl/crypto/asn1/tasn_dec.c,v
  45. rcsdiff -q -kk '-r1.26.2.10' '-r1.26.2.11' -u '/v/openssl/cvs/openssl/crypto/asn1/tasn_dec.c,v' 2>/dev/null
  46. --- tasn_dec.c  2009/03/14 18:33:25       1.26.2.10
  47. +++ tasn_dec.c  2009/03/25 10:35:57       1.26.2.11
  48. @@ -1012,6 +1012,18 @@
  49.                case V_ASN1_SET:
  50.                case V_ASN1_SEQUENCE:
  51.                default:
  52. +              if (utype == V_ASN1_BMPSTRING && (len & 1))
  53. +                     {
  54. +                     ASN1err(ASN1_F_ASN1_EX_C2I,
  55. +                                   ASN1_R_BMPSTRING_IS_WRONG_LENGTH);
  56. +                     goto err;
  57. +                     }
  58. +              if (utype == V_ASN1_UNIVERSALSTRING && (len & 3))
  59. +                     {
  60. +                     ASN1err(ASN1_F_ASN1_EX_C2I,
  61. +                                   ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH);
  62. +                     goto err;
  63. +                     }
  64.                /* All based on ASN1_STRING and handled the same */
  65.                if (!*pval)
  66.                       {

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right
fantasy-obligation