[
https://issues.apache.org/jira/browse/DISPATCH-954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16423006#comment-16423006
]
ASF GitHub Bot commented on DISPATCH-954:
-----------------------------------------
GitHub user fgiorgetti opened a pull request:
https://github.com/apache/qpid-dispatch/pull/277
DISPATCH-954 - Fixed issue suggested by coverity scan tool
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/fgiorgetti/qpid-dispatch
fgiorgetti-DISPATCH-954
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/qpid-dispatch/pull/277.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #277
----
commit 39a60bd5f7e0d1a125ef81f7195d9292fae6a348
Author: Fernando Giorgetti <fgiorget@...>
Date: 2018-04-02T19:15:19Z
DISPATCH-954 - Fixed issue suggested by coverity scan tool
----
> Fix Coverity issue on master branch
> -----------------------------------
>
> Key: DISPATCH-954
> URL: https://issues.apache.org/jira/browse/DISPATCH-954
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Container
> Affects Versions: 1.0.1
> Reporter: Ganesh Murthy
> Priority: Major
> Fix For: 1.1.0
>
>
> Please find the latest report on new defect(s) introduced to Apache Qpid
> dispatch-router found with Coverity Scan.
>
> 1 new defect(s) introduced to Apache Qpid dispatch-router found with
> Coverity Scan.
> 4 defect(s), reported by Coverity Scan earlier, were marked fixed in the
> recent build analyzed by Coverity Scan.
>
> New defect(s) Reported-by: Coverity Scan
> Showing 1 of 1 defect(s)
>
>
> ** CID 267696: Memory - illegal accesses (USE_AFTER_FREE)
> /home/kgiusti/work/dispatch/qpid-dispatch/router/src/main.c: 215 in
> daemon_process()
>
>
>
> ________________________________________________________________________________________________________
> *** CID 267696: Memory - illegal accesses (USE_AFTER_FREE)
> /home/kgiusti/work/dispatch/qpid-dispatch/router/src/main.c: 215 in
> daemon_process()
> 209 cur_path,
> 210 !strcmp("/", cur_path)? "":"/",
> 211 config_path);
> 212 }
> 213
> 214 // Releasing temporary path variable
> >>> CID 267696: Memory - illegal accesses (USE_AFTER_FREE)
> >>> Calling "memset" dereferences freed pointer "cur_path".
> 215 memset(cur_path, 0, path_size * sizeof(char));
> 216 free(cur_path);
> 217
> 218 }
> 219
> 220 //
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]