[ 
https://issues.apache.org/jira/browse/TS-4605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15355011#comment-15355011
 ] 

ASF GitHub Bot commented on TS-4605:
------------------------------------

GitHub user masaori335 opened a pull request:

    https://github.com/apache/trafficserver/pull/767

    TS-4605: fix Coverity issue 1357058

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/masaori335/trafficserver ts-4605

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafficserver/pull/767.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 #767
    
----
commit e1a37058fc14646f517c304b6d277c788a9c0462
Author: Masaori Koshiba <masa...@apache.org>
Date:   2016-06-29T05:08:41Z

    TS-4605: fix Coverity issue 1357058

----


> Coverity issue 1357058: Uninitialized members in PriorityQueue.h
> ----------------------------------------------------------------
>
>                 Key: TS-4605
>                 URL: https://issues.apache.org/jira/browse/TS-4605
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Leif Hedstrom
>            Assignee: Masaori Koshiba
>             Fix For: 7.0.0
>
>
> {code}
> ** CID 1357058:  Uninitialized members  (UNINIT_CTOR)
> /lib/ts/PriorityQueue.h: 32 in PriorityQueueEntry<RefCountCacheHashEntry 
> *>::PriorityQueueEntry()()
> ________________________________________________________________________________________________________
> *** CID 1357058:  Uninitialized members  (UNINIT_CTOR)
> /lib/ts/PriorityQueue.h: 32 in PriorityQueueEntry<RefCountCacheHashEntry 
> *>::PriorityQueueEntry()()
> 26     
> 27     #include "ts/ink_assert.h"
> 28     #include "ts/Vec.h"
> 29     
> 30     template <typename T> struct PriorityQueueEntry {
> 31       PriorityQueueEntry(T n) : index(0), node(n){};
>    CID 1357058:  Uninitialized members  (UNINIT_CTOR)
>    Non-static class member "node" is not initialized in this constructor nor 
> in any functions that it calls.
> 32       PriorityQueueEntry() : index(0){};
> 33       uint32_t index;
> 34       T node;
> 35     };
> 36     
> 37     template <typename T> struct PriorityQueueLess {
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to