aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1/ber_dec.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add missing statementJack Lloyd2018-06-081-0/+1
|
* Reduce copying/allocations when BER decodingJack Lloyd2018-06-081-49/+62
| | | | | | | We are constrained in how far we can go because BER_Object must mandatorily copy its value (due to the public member variable exposting the bytes). But this reduces the number of allocations when parsing a sample X.509 certificate by about 15%
* Use BER_Decoder::get_next to cleanup X.509 cert decoding codeJack Lloyd2018-05-211-1/+9
|
* Use BOTAN_DEFAULT_BUFFER_SIZE instead of DEFAULT_BUFFERSIZEJack Lloyd2018-03-011-1/+1
|
* Prepare for making BER_Object members privateJack Lloyd2018-01-181-54/+41
| | | | | Now there are usable accessors that allow the library to avoid using BER_Object members directly.
* Fix some other copy+paste code in BER_DecoderJack Lloyd2017-12-191-70/+34
|
* Avoid uncontrolled recusion on indefinite length encodingsJack Lloyd2017-11-201-17/+26
| | | | | A sufficiently nested indefinite length construction would cause stack exhaustion and a crash. Found by OSS-Fuzz - issue 4353
* Refactor to avoid explicit delete in BER_DecoderJack Lloyd2017-09-221-23/+9
|
* Add a guard to avoid doing &v[1] when v.size() == 1Jack Lloyd2017-08-251-2/+6
| | | | Found by running the fuzzers over corpus with debug iterators.
* Avoid recursion in BER_Decoder::get_next_objectJack Lloyd2017-04-091-11/+16
|
* Convert to using standard uintN_t integer typesJack Lloyd2016-12-181-20/+20
| | | | | | Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them.
* Check for overflow in BER decoder EOC scanningJack Lloyd2016-11-271-1/+4
|
* Fix remaining Wshadow warnings and enable on gcc and clangRené Korthaus2016-02-181-5/+5
|
* Mass-prefix member vars with m_René Korthaus2016-01-081-44/+44
|
* Internal header cleanupsJack Lloyd2015-09-191-1/+1
| | | | Only user-visible change is the removal of get_byte.h
* Fix two crashes in the BER decoder found with afl.Jack Lloyd2015-08-021-2/+10
| | | | | One a read at 0 of an empty vector, the other causing allocation of an arbitrary amount of memory.
* More changes for use with debug STLSimon Warta2015-06-301-2/+2
|
* lib/asn1: Convert &vec[0] to vec.data()Simon Warta2015-06-271-6/+6
|
* Ensure all files have copyright and license info.lloyd2015-01-101-1/+1
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* Fix decoding indefinite length BER constructs that contain a contextlloyd2014-09-271-1/+1
| | | | sensitive tag of zero. Github pull 26 from Janusz Chorko.
* Move lib into srclloyd2014-01-101-0/+561