Ekaterina Zilotina created DIRSERVER-2411:
---------------------------------------------
Summary: potential null dereference in ChangeLogInterceptor
Key: DIRSERVER-2411
URL: https://issues.apache.org/jira/browse/DIRSERVER-2411
Project: Directory ApacheDS
Issue Type: Bug
Reporter: Ekaterina Zilotina
In results of static analyze with Svace I found potential null dereference
[potential null
dereference|https://github.com/apache/directory-server/blob/7e913cf507092f6fd7aedd3daff204fbf019772a/interceptors/changelog/src/main/java/org/apache/directory/server/core/changelog/ChangeLogInterceptor.java#L373]
of *serverEntry* value in
[rename()|https://github.com/apache/directory-server/blob/7e913cf507092f6fd7aedd3daff204fbf019772a/interceptors/changelog/src/main/java/org/apache/directory/server/core/changelog/ChangeLogInterceptor.java#L347]
function.
*serverEntry* gets *null* while creating at the start of *rename()* function
and can be dereferenced in *LdifRevertor.reverseRename()* function call at line
372
how about to add check for this case when serverEntry will keep null after
instruction 353 line?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]