]> git.sur5r.net Git - openldap/commit
More ITS#6215 -
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 29 Jul 2009 16:49:42 +0000 (16:49 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 29 Jul 2009 16:49:42 +0000 (16:49 +0000)
commit36d2dc034d64190563ca15c2019124ae8efce071
tree35641f9cbf1e67c54e3a794e9c73e47cf3c22ef3
parent53f884ac1db2b030d2435f837e84ba7d16ec8b72
More ITS#6215 -
Speedup & less memory allocation:
  Simplify the work to encode tag, length, integer/enum, sequence/set.
  Drop struct seqorset and allocations of it.  Replace BerElement.ber_sos.
  Drop ber_write(,,,nonzero) support. Callers, if any, need to be rewritten.
  Make ber_log_sos_dump() and ber_sos_dump() stubs, they could no longer work.
Fix ber_write() buffer overrun after ber_start_seqorset().
Check overflow and max sizes, e.g. for functions returning int size.
Some cleanup, and handwaves in the direction of supporting CHAR_BIT>8.
Add/fix comments and a few descriptive types/macros.
libraries/liblber/bprint.c
libraries/liblber/encode.c
libraries/liblber/io.c
libraries/liblber/lber-int.h