summaryrefslogtreecommitdiff
path: root/lib/util/asn1.c
AgeCommit message (Collapse)AuthorFilesLines
2013-10-14asn1: fix use-after-free in asn1_writeJeff Layton1-1/+0
On talloc_realloc failure, asn1_write calls talloc_free on an asn1_data pointer and then tries to immediately set the has_error flag on it. Skip the free and just set the has_error flag. Signed-off-by: Jeff Layton <jlayton@redhat.com> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Oct 14 16:54:35 CEST 2013 on sn-devel-104
2012-07-13lib/util: Allocate enough space to reference blob->data[len]Andrew Bartlett1-3/+3
Found by Thomas Hood <jdthood@gmail.com> using valgrind. Thanks! Andrew Bartlett
2011-05-24Fix our asn.1 parser to handle negative numbers.Jeremy Allison1-0/+9
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue May 24 22:57:16 CEST 2011 on sn-devel-104
2011-04-22asn1: Fix Coverity ID 2299, CHECKED_RETURNVolker Lendecke1-1/+5
2010-12-21lib/util/asn1.c - remove the "const" specifier from OIDMatthias Dieter Wallnöfer1-8/+9
There is no reason to have it "const" since it's an allocated thing.
2010-10-22asn1: ber_write_OID_String() to be more picky about supplied OIDKamen Mazdrashki1-0/+5
Now function will check for invalid OID handling cases where: - sub-identifier has invalid characters (non-digit) - 'dot' separator found on unexpected place. For instance '.' at start or end of the OID. Two '.' in a row.
2010-10-20lib/util/asn1.c: comment spellingKamen Mazdrashki1-1/+1
2010-10-04lib/util/asn1: let asn1_peek_full_tag() return an error if we fail to parse ↵Stefan Metzmacher1-1/+13
tag hdr/len metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 4 14:46:40 UTC 2010 on sn-devel-104
2010-10-02s3: Fix a 64-bit BUGVolker Lendecke1-1/+1
Quick explanation why this is a problem: It is not safe to pass a pointer to a uint32_t into a routine that expects a size_t *. The routine that this pointer is passed to has no chance to find out that in reality it was passed a pointer to a uint32_t. On platforms where sizeof(size_t)==8, we get a nice overwrite of a stack area that should not be overwritten. As this happens over an over again: Does someone know a means to make gcc stop with an error in this case? Volker
2010-09-26lib/util/asn1: add asn1_peek_tag_needed_size() and asn1_peek_full_tag()Stefan Metzmacher1-0/+83
We need a way to ask for the length of a tag without having the full buffer yet. metze
2010-03-21Fix an uninitialized variableVolker Lendecke1-0/+4
2010-02-02Change uint_t to unsigned int in lib/utilMatt Kraai1-2/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-10-16s4/asn1: Use explicite TALLOC_CTX in ber_write_OID functionsKamen Mazdrashki1-11/+11
2009-10-01s4/asn1: ber_read_OID_String() to be based on _ber_read_OID_String_impl()Kamen Mazdrashki1-30/+3
2009-10-01s4/drsuapi: ber_read_partial_OID_String() implementationKamen Mazdrashki1-0/+36
2009-10-01s4/drsuapi: Internal implementation for ber_read_OID_StringKamen Mazdrashki1-0/+40
Modified implementation _ber_read_OID_String_impl() returns how much bytes are converted. The intentation is to use this implementation both for reading OIDs and partial-OIDs in the future
2009-10-01s4/drsuapi: ber_write_partial_OID_String() implementationKamen Mazdrashki1-0/+35
2009-09-17spnego: Support ASN.1 BIT STRING and use it in SPNEGO.Kouhei Sutou1-0/+42
Signed-off-by: Günther Deschner <gd@samba.org>
2009-07-31util/asn1: fix potential memory leak in asn1_write_OID()Stefan Metzmacher1-0/+1
metze
2009-06-20Move asn1_load_nocopy() to lib/util/asn1.cVolker Lendecke1-0/+10
2009-06-20Move asn1_blob() to lib/util/asn1.cVolker Lendecke1-0/+16
2009-06-10added asn1 functions for handling booleans in a simple contextAndrew Tridgell1-0/+23
2009-06-06Use data_blob_null instead of data_blob(NULL, 0)Volker Lendecke1-1/+1
2008-10-22lib-util: fix c++ compile warning.Günther Deschner1-1/+1
Guenther
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij1-1/+1
2008-10-11Move lib/util from source4 to top-level libutil.Jelmer Vernooij1-0/+770
Conflicts: source4/Makefile