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:
4
parse.c
4
parse.c
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user