diff options
| author | Noriko Hosoi <nhosoi@redhat.com> | 2010-03-16 16:45:33 -0700 |
|---|---|---|
| committer | Noriko Hosoi <nhosoi@redhat.com> | 2010-03-16 16:45:33 -0700 |
| commit | 0cd1fc49e67e396cf5391a591c83fd1ad0df9d2b (patch) | |
| tree | 5d0d8a3b35072cdd0aed32ee5a7c9530b5dcbdc0 /ldap/admin/src | |
| parent | 23bf6060d3088f9a3f5f5fac1b18faa4bc8756c8 (diff) | |
| download | ds-0cd1fc49e67e396cf5391a591c83fd1ad0df9d2b.tar.gz ds-0cd1fc49e67e396cf5391a591c83fd1ad0df9d2b.tar.xz ds-0cd1fc49e67e396cf5391a591c83fd1ad0df9d2b.zip | |
573896 - initializing subtree with invalid syntax crashes ns-slapd
https://bugzilla.redhat.com/show_bug.cgi?id=573896
Description: When an import is executed using a task mechanism,
slapi_task_log_notice is called for logging, where task_log field
points the memory storing the log messages. If multiple log
messages were logged by multiple worker threads simultaneously,
there was a chance that the address of the log message was switched
by realloc while the other threads were accessing the old address.
This patch introduces task_log_lock per task to protect task_log.
Note: slapi_ch_malloc and its friends never return NULL. They rather
exits. Thus, to avoid the confusion which may look leaking the
lock, I eliminated 2 error returns from slapi_task_log_notice.
Diffstat (limited to 'ldap/admin/src')
0 files changed, 0 insertions, 0 deletions
