ldapclient can now also query for no attributes

mstorage_add can now allocate larger chunks (and parse uses 1 MiB)
fix small oversight in addindex putting wrong index size in header
more integer overflow checks in asn1 code (not security relevant)
fix missing initialization in asn1 routines (not security relevant, code
section not triggered by ldap)
This commit is contained in:
leitner
2005-04-01 21:53:33 +00:00
parent 253865441b
commit 5b980e3f93
7 changed files with 47 additions and 30 deletions

View File

@@ -51,6 +51,8 @@ extern int (*ldif_parse_callback)(struct ldaprec* l);
#define PAGE_SIZE 4096
#endif
extern unsigned long mstorage_increment;
/* for debugging and error messages */
/* ldaprec is the struct used by ldif_parse.c */
void dumprec(struct ldaprec* l) {
@@ -148,6 +150,8 @@ int main(int argc,char* argv[]) {
long offset_stringtable;
char* map,* dest;
mstorage_increment=1024*1024; /* always grow mstorages by 1 additional MiB to reduce mmap overhead */
tempname=alloca(strlen(destname)+10);
mstorage_init(&record_offsets);