EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: [Bug 1863079] [NEW] Possible memory leak in modules/libcom/src/osi/os/vxWorks/osdThread.c
From: Karl Vestin via Core-talk <core-talk at aps.anl.gov>
To: core-talk at aps.anl.gov
Date: Thu, 13 Feb 2020 10:12:14 -0000
Public bug reported:

In the void epicsThreadMap ( EPICS_THREAD_HOOK_ROUTINE func ) function
in modules/libcom/src/osi/os/vxWorks/osdThread.c a realloc is used on
taskIdList. If the realloc fails the original pointer will not be freed,
causing a possible memory leak.

This is falgegd as an error by the Codacy static code analysis.

Codacy link: https://app.codacy.com/gh/epics-base/epics-
base/file/42103574999/issues/source?bid=16430872&fileBranchId=16430872#l471

** Affects: epics-base
     Importance: Undecided
         Status: New


** Tags: codacy

-- 
You received this bug notification because you are a member of EPICS
Core Developers, which is subscribed to EPICS Base.
Matching subscriptions: epics-core-list-subscription
https://bugs.launchpad.net/bugs/1863079

Title:
  Possible memory leak in modules/libcom/src/osi/os/vxWorks/osdThread.c

Status in EPICS Base:
  New

Bug description:
  In the void epicsThreadMap ( EPICS_THREAD_HOOK_ROUTINE func ) function
  in modules/libcom/src/osi/os/vxWorks/osdThread.c a realloc is used on
  taskIdList. If the realloc fails the original pointer will not be
  freed, causing a possible memory leak.

  This is falgegd as an error by the Codacy static code analysis.

  Codacy link: https://app.codacy.com/gh/epics-base/epics-
  base/file/42103574999/issues/source?bid=16430872&fileBranchId=16430872#l471

To manage notifications about this bug go to:
https://bugs.launchpad.net/epics-base/+bug/1863079/+subscriptions

Navigate by Date:
Prev: [Bug 1863077] [NEW] Possible memory leak in modules/libcom/src/osi/os/default/osdThreadHooks.c Karl Vestin via Core-talk
Next: [Bug 1842661] Re: seq record doesn't process LNK0 in "Specified" mode Gabriel Fedel via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: [Bug 1863077] [NEW] Possible memory leak in modules/libcom/src/osi/os/default/osdThreadHooks.c Karl Vestin via Core-talk
Next: [Bug 1842661] Re: seq record doesn't process LNK0 in "Specified" mode Gabriel Fedel via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 13 Feb 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·