~ubuntu-branches/ubuntu/lucid/libtasn1-3/lucid-security

« back to all changes in this revision

Viewing changes to lib/parser_aux.h

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-04-02 11:27:53 UTC
  • Revision ID: package-import@ubuntu.com-20150402112753-ek5d5e0lzmg7r3mr
Tags: 2.4-1ubuntu0.3
* SECURITY UPDATE: denial of service and possible code execution via
  overflow in _asn1_ltostr
  - debian/patches/CVE-2015-2806.patch: introduce LTOSTR_MAX_SIZE and use
    in lib/coding.c, lib/decoding.c, lib/element.c, lib/parser_aux.c,
    lib/parser_aux.h.
  - CVE-2015-2806

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
void _asn1_delete_list_and_nodes (void);
44
44
 
45
 
char *_asn1_ltostr (long v, char *str);
 
45
/* Max 64-bit integer length is 20 chars + 1 for sign + 1 for null termination */
 
46
#define LTOSTR_MAX_SIZE 22
 
47
char *_asn1_ltostr (long v, char str[LTOSTR_MAX_SIZE]);
46
48
 
47
49
ASN1_TYPE _asn1_find_up (ASN1_TYPE node);
48
50