1. 10 Jul, 2022 1 commit
  2. 30 Apr, 2022 3 commits
    • Alan Coopersmith's avatar
      LoadSCCData: avoid leaking memory if we give up early · 337a55d3
      Alan Coopersmith authored
      
      
      Resolves issues reported by Oracle Parfait static analyser:
      
      Error: Memory leak
         Memory leak [memory-leak] (CWE 401):
            Memory leak of pointer pCurrent allocated with calloc(1, 112)
              at line 1615 of app/xcmsdb/loadData.c in function 'LoadSCCData'.
                pCurrent allocated at line 1600 with calloc(1, 112)
      Error: Memory leak
         Memory leak [memory-leak] (CWE 401):
            Memory leak of pointer pCurrent allocated with calloc(1, 112)
              at line 1634 of app/xcmsdb/loadData.c in function 'LoadSCCData'.
                pCurrent allocated at line 1600 with calloc(1, 112)
                pCurrent leaks when VisualFlag == 0 at line 1618
                    and VisualFlag == 0 at line 1626.
      Error: Memory leak
         Memory leak [memory-leak] (CWE 401):
            Memory leak of pointer pCurrent allocated with calloc(1, 112)
              at line 1656 of app/xcmsdb/loadData.c in function 'LoadSCCData'.
                pCurrent allocated at line 1600 with calloc(1, 112)
                pCurrent leaks when VisualFlag == 0 at line 1618
                    and VisualFlag == 0 at line 1626
                    and pCurrent->nTables != 0 at line 1628
                    and pCurrent->nTables != 1 at line 1628
                    and token3 == NULL at line 1642
                    and pCurrent->nTables is 3 at line 1648
                    and pCurrent->pRedTbl == NULL at line 1651.
         Memory leak [memory-leak] (CWE 401):
            Memory leak of pointer pCurrent allocated with calloc(1, 112)
              at line 1664 of app/xcmsdb/loadData.c in function 'LoadSCCData'.
                pCurrent allocated at line 1600 with calloc(1, 112)
                pCurrent leaks when VisualFlag == 0 at line 1618
                    and VisualFlag == 0 at line 1626
                    and pCurrent->nTables != 0 at line 1628
                    and pCurrent->nTables != 1 at line 1628
                    and token3 == NULL at line 1642
                    and pCurrent->nTables is 3 at line 1648
                    and pCurrent->pGreenTbl == NULL at line 1659.
         Memory leak [memory-leak] (CWE 401):
            Memory leak of pointer pCurrent allocated with calloc(1, 112)
              at line 1672 of app/xcmsdb/loadData.c in function 'LoadSCCData'.
                pCurrent allocated at line 1600 with calloc(1, 112)
                pCurrent leaks when VisualFlag == 0 at line 1618
                    and VisualFlag == 0 at line 1626
                    and pCurrent->nTables != 0 at line 1628
                    and pCurrent->nTables != 1 at line 1628
                    and token3 == NULL at line 1642
                    and pCurrent->nTables is 3 at line 1648
                    and pCurrent->pBlueTbl == NULL at line 1667.
         Memory leak [memory-leak] (CWE 401):
            Memory leak of pointer pCurrent allocated with calloc(1, 112)
              at line 1685 of app/xcmsdb/loadData.c in function 'LoadSCCData'.
                pCurrent allocated at line 1600 with calloc(1, 112)
                pCurrent leaks when VisualFlag == 0 at line 1618
                    and VisualFlag == 0 at line 1626
                    and pCurrent->nTables != 0 at line 1628
                    and pCurrent->nTables == 1 at line 1628
                    and token3 == NULL at line 1642
                    and pCurrent->nTables is 1 at line 1648
                    and pCurrent->pRedTbl == NULL at line 1680.
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      337a55d3
    • Alan Coopersmith's avatar
    • Alan Coopersmith's avatar
      54b7f624
  3. 03 Apr, 2022 1 commit
    • Alan Coopersmith's avatar
      Fix -Wsign-compare warnings in PrintTableType1() · 63f48f29
      Alan Coopersmith authored
      
      
      xcmsdb.c: In function ‘PrintTableType1’:
      xcmsdb.c:299:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for (count = 0; count < max_index+1; count++) {
                              ^
      xcmsdb.c:307:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for (count = 0; count < max_index+1; count++) {
                              ^
      xcmsdb.c:315:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for (count = 0; count < max_index+1; count++) {
                              ^
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      63f48f29
  4. 04 Dec, 2021 2 commits
  5. 28 Nov, 2021 1 commit
  6. 22 Nov, 2018 1 commit
  7. 17 Nov, 2018 1 commit
  8. 26 Jan, 2017 3 commits
  9. 17 Apr, 2015 1 commit
  10. 05 Jan, 2015 2 commits
  11. 31 Dec, 2014 1 commit
  12. 03 Jun, 2014 2 commits
  13. 02 Dec, 2013 3 commits
  14. 27 Nov, 2013 3 commits
  15. 15 Feb, 2012 1 commit
  16. 08 May, 2011 3 commits
  17. 19 Jan, 2011 1 commit
  18. 13 Jan, 2011 2 commits
  19. 12 Jan, 2011 1 commit
  20. 24 Sep, 2010 4 commits
  21. 06 Aug, 2010 1 commit
  22. 08 Jan, 2010 1 commit
  23. 26 Nov, 2009 1 commit