├── .editorconfig ├── .github └── workflows │ ├── build.yml │ ├── deploy-gh-pages.yml │ ├── deploy-wiki.yml │ ├── taxonomy-manual.yml │ └── taxonomy.yml ├── .gitignore ├── LICENSE ├── Makefile ├── README.rst ├── README.rst.template ├── bugscpp ├── __init__.py ├── bugscpp.py ├── command │ └── __init__.py ├── config │ ├── __init__.py │ ├── config.py │ └── env.py ├── errors │ ├── __init__.py │ ├── argparser.py │ ├── checkout.py │ ├── common │ │ ├── __init__.py │ │ └── exception.py │ ├── docker.py │ ├── internal.py │ └── search.py ├── message │ ├── __init__.py │ └── message.py ├── processor │ ├── __init__.py │ ├── build.py │ ├── checkout.py │ ├── command_list.py │ ├── core │ │ ├── __init__.py │ │ ├── argparser.py │ │ ├── command.py │ │ ├── data.py │ │ ├── docker.py │ │ ├── shell.py │ │ └── validator │ │ │ ├── __init__.py │ │ │ ├── common_command.py │ │ │ └── project_command.py │ ├── help.py │ ├── search.py │ ├── show.py │ └── test.py └── taxonomy │ ├── __init__.py │ ├── berry │ ├── Dockerfile │ ├── __init__.py │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0002-buggy.patch │ │ ├── 0003-buggy.patch │ │ ├── 0004-buggy.patch │ │ └── 0005-buggy.patch │ ├── coreutils │ ├── Dockerfile │ ├── __init__.py │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0001-common.patch │ │ ├── 0002-buggy.patch │ │ └── 0002-common.patch │ ├── cpp_peglib │ ├── Dockerfile │ ├── __init__.py │ ├── extra │ │ ├── 0001 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0002 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0003 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0004 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0005 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0006 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0007 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0008 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0009 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ └── 0010 │ │ │ └── .dpp │ │ │ └── test_list │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0002-buggy.patch │ │ ├── 0002-common.patch │ │ ├── 0003-buggy.patch │ │ ├── 0003-common.patch │ │ ├── 0004-buggy.patch │ │ ├── 0005-buggy.patch │ │ ├── 0006-buggy.patch │ │ ├── 0006-common.patch │ │ ├── 0007-buggy.patch │ │ ├── 0008-buggy.patch │ │ ├── 0009-buggy.patch │ │ └── 0010-buggy.patch │ ├── cppcheck │ ├── Dockerfile │ ├── __init__.py │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0002-buggy.patch │ │ ├── 0003-buggy.patch │ │ ├── 0004-buggy.patch │ │ ├── 0005-buggy.patch │ │ ├── 0006-buggy.patch │ │ ├── 0007-buggy.patch │ │ ├── 0008-buggy.patch │ │ ├── 0009-buggy.patch │ │ ├── 0010-buggy.patch │ │ ├── 0011-buggy.patch │ │ ├── 0012-buggy.patch │ │ ├── 0013-buggy.patch │ │ ├── 0014-buggy.patch │ │ ├── 0015-buggy.patch │ │ ├── 0016-buggy.patch │ │ ├── 0017-buggy.patch │ │ ├── 0018-buggy.patch │ │ ├── 0019-buggy.patch │ │ ├── 0020-buggy.patch │ │ ├── 0021-buggy.patch │ │ ├── 0022-buggy.patch │ │ ├── 0023-buggy.patch │ │ ├── 0024-buggy.patch │ │ ├── 0025-buggy.patch │ │ ├── 0026-buggy.patch │ │ ├── 0027-buggy.patch │ │ ├── 0028-buggy.patch │ │ ├── 0029-buggy.patch │ │ └── 0030-buggy.patch │ ├── dlt_daemon │ ├── Dockerfile │ ├── __init__.py │ ├── extra │ │ └── 0001 │ │ │ └── .dpp │ │ │ └── poc.txt │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ └── 0001-common.patch │ ├── example │ ├── Dockerfile │ ├── __init__.py │ ├── meta.json │ └── patch │ │ └── 0001-buggy.patch │ ├── exiv2 │ ├── Dockerfile │ ├── __init__.py │ ├── extra │ │ ├── 0001 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0002 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0003 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0004 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0005 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0006 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0007 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0008 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0009 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0010 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0011 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0012 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0013 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0014 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0015 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0016 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0017 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0018 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0019 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ └── 0020 │ │ │ └── .dpp │ │ │ └── test_list │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0002-buggy.patch │ │ ├── 0002-common.patch │ │ ├── 0003-buggy.patch │ │ ├── 0004-buggy.patch │ │ ├── 0005-buggy.patch │ │ ├── 0006-buggy.patch │ │ ├── 0007-buggy.patch │ │ ├── 0007-common.patch │ │ ├── 0008-buggy.patch │ │ ├── 0008-common.patch │ │ ├── 0009-buggy.patch │ │ ├── 0009-common.patch │ │ ├── 0010-buggy.patch │ │ ├── 0011-buggy.patch │ │ ├── 0011-common.patch │ │ ├── 0012-buggy.patch │ │ ├── 0013-buggy.patch │ │ ├── 0014-buggy.patch │ │ ├── 0014-common.patch │ │ ├── 0015-buggy.patch │ │ ├── 0015-common.patch │ │ ├── 0016-buggy.patch │ │ ├── 0017-buggy.patch │ │ ├── 0017-common.patch │ │ ├── 0018-buggy.patch │ │ ├── 0018-common.patch │ │ ├── 0019-buggy.patch │ │ └── 0020-buggy.patch │ ├── jerryscript │ ├── Dockerfile │ ├── __init__.py │ ├── extra │ │ ├── 0001 │ │ │ └── .dpp │ │ │ │ ├── build.sh │ │ │ │ ├── run-unittests.py │ │ │ │ ├── test.js │ │ │ │ ├── test_list │ │ │ │ └── util.py │ │ ├── 0002 │ │ │ └── .dpp │ │ │ │ ├── build.sh │ │ │ │ ├── run-unittests.py │ │ │ │ ├── test.js │ │ │ │ ├── test_list │ │ │ │ └── util.py │ │ ├── 0003 │ │ │ └── .dpp │ │ │ │ ├── build.sh │ │ │ │ ├── run-unittests.py │ │ │ │ ├── test.js │ │ │ │ ├── test_list │ │ │ │ └── util.py │ │ ├── 0004 │ │ │ └── .dpp │ │ │ │ ├── build.sh │ │ │ │ ├── run-unittests.py │ │ │ │ ├── test.js │ │ │ │ ├── test_list │ │ │ │ └── util.py │ │ ├── 0005 │ │ │ └── .dpp │ │ │ │ ├── build.sh │ │ │ │ ├── run-unittests.py │ │ │ │ ├── test.js │ │ │ │ ├── test_list │ │ │ │ └── util.py │ │ ├── 0006 │ │ │ └── .dpp │ │ │ │ ├── build.sh │ │ │ │ ├── run-unittests.py │ │ │ │ ├── test.js │ │ │ │ ├── test_list │ │ │ │ └── util.py │ │ ├── 0007 │ │ │ └── .dpp │ │ │ │ ├── build.sh │ │ │ │ ├── run-unittests.py │ │ │ │ ├── test.js │ │ │ │ ├── test_list │ │ │ │ └── util.py │ │ ├── 0008 │ │ │ └── .dpp │ │ │ │ ├── build.sh │ │ │ │ ├── run-unittests.py │ │ │ │ ├── test.js │ │ │ │ ├── test_list │ │ │ │ └── util.py │ │ ├── 0009 │ │ │ └── .dpp │ │ │ │ ├── build.sh │ │ │ │ ├── run-unittests.py │ │ │ │ ├── test.js │ │ │ │ ├── test_list │ │ │ │ └── util.py │ │ ├── 0010 │ │ │ └── .dpp │ │ │ │ ├── build.sh │ │ │ │ ├── run-unittests.py │ │ │ │ ├── test.js │ │ │ │ ├── test_list │ │ │ │ └── util.py │ │ └── 0011 │ │ │ └── .dpp │ │ │ ├── build.sh │ │ │ ├── run-unittests.py │ │ │ ├── test_list │ │ │ ├── util.py │ │ │ └── xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.js │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0001-common.patch │ │ ├── 0002-buggy.patch │ │ ├── 0002-common.patch │ │ ├── 0003-buggy.patch │ │ ├── 0003-common.patch │ │ ├── 0004-buggy.patch │ │ ├── 0004-common.patch │ │ ├── 0005-buggy.patch │ │ ├── 0005-common.patch │ │ ├── 0006-buggy.patch │ │ ├── 0006-common.patch │ │ ├── 0007-buggy.patch │ │ ├── 0007-common.patch │ │ ├── 0008-buggy.patch │ │ ├── 0008-common.patch │ │ ├── 0009-buggy.patch │ │ ├── 0009-common.patch │ │ ├── 0010-buggy.patch │ │ ├── 0010-common.patch │ │ ├── 0011-buggy.patch │ │ └── 0011-common.patch │ ├── libchewing │ ├── Dockerfile │ ├── __init__.py │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0002-buggy.patch │ │ ├── 0003-buggy.patch │ │ ├── 0003-common.patch │ │ ├── 0004-buggy.patch │ │ ├── 0005-buggy.patch │ │ ├── 0006-buggy.patch │ │ ├── 0007-buggy.patch │ │ └── 0008-buggy.patch │ ├── libssh │ ├── Dockerfile │ ├── __init__.py │ ├── meta.json │ └── patch │ │ └── 0001-buggy.patch │ ├── libtiff │ ├── Dockerfile │ ├── __init__.py │ ├── extra │ │ ├── 0001 │ │ │ └── .dpp │ │ │ │ └── CVE-2016-5321.tif │ │ ├── 0002 │ │ │ └── .dpp │ │ │ │ └── crash.gif │ │ ├── 0004 │ │ │ └── .dpp │ │ │ │ └── 00123-libtiff-fpe-JPEGSetupEncode │ │ └── 0005 │ │ │ └── .dpp │ │ │ └── test049 │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0001-common.patch │ │ ├── 0002-buggy.patch │ │ ├── 0002-common.patch │ │ ├── 0003-buggy.patch │ │ ├── 0003-common.patch │ │ ├── 0004-buggy.patch │ │ ├── 0004-common.patch │ │ ├── 0005-buggy.patch │ │ └── 0005-common.patch │ ├── libtiff_sanitizer │ ├── Dockerfile │ ├── __init__.py │ ├── extra │ │ ├── 0001 │ │ │ └── .dpp │ │ │ │ └── 00107-libtiff-heapoverflow-PSDataColorContig │ │ ├── 0002 │ │ │ └── .dpp │ │ │ │ └── 00112-libtiff-heapoverflow-_TIFFmemcpy │ │ ├── 0003 │ │ │ └── .dpp │ │ │ │ └── 00119-libtiff-shift-long-tif_jpeg │ │ └── 0004 │ │ │ └── .dpp │ │ │ └── 00083-libtiff-fpe-OJPEGDecodeRaw │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0001-common.patch │ │ ├── 0002-buggy.patch │ │ ├── 0002-common.patch │ │ ├── 0003-buggy.patch │ │ ├── 0003-common.patch │ │ ├── 0004-buggy.patch │ │ └── 0004-common.patch │ ├── libucl │ ├── Dockerfile │ ├── __init__.py │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0001-common.patch │ │ ├── 0002-buggy.patch │ │ ├── 0003-buggy.patch │ │ ├── 0004-buggy.patch │ │ ├── 0005-buggy.patch │ │ └── 0006-buggy.patch │ ├── libxml2 │ ├── Dockerfile │ ├── __init__.py │ ├── extra │ │ ├── 0001 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0002 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0003 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0004 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0005 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0006 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ └── 0007 │ │ │ └── .dpp │ │ │ └── test_list │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0001-common.patch │ │ ├── 0002-buggy.patch │ │ ├── 0002-common.patch │ │ ├── 0003-buggy.patch │ │ ├── 0003-common.patch │ │ ├── 0004-buggy.patch │ │ ├── 0004-common.patch │ │ ├── 0005-buggy.patch │ │ ├── 0005-common.patch │ │ ├── 0006-buggy.patch │ │ ├── 0006-common.patch │ │ ├── 0007-buggy.patch │ │ └── 0007-common.patch │ ├── md4c │ ├── Dockerfile │ ├── __init__.py │ ├── extra │ │ ├── 0001 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0002 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0003 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0004 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0005 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0006 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0007 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0008 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0009 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ └── 0010 │ │ │ └── .dpp │ │ │ └── test_list │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0001-common.patch │ │ ├── 0002-buggy.patch │ │ ├── 0002-common.patch │ │ ├── 0003-buggy.patch │ │ ├── 0003-common.patch │ │ ├── 0004-buggy.patch │ │ ├── 0004-common.patch │ │ ├── 0005-buggy.patch │ │ ├── 0005-common.patch │ │ ├── 0006-buggy.patch │ │ ├── 0006-common.patch │ │ ├── 0007-buggy.patch │ │ ├── 0007-common.patch │ │ ├── 0008-buggy.patch │ │ ├── 0008-common.patch │ │ ├── 0009-buggy.patch │ │ ├── 0009-common.patch │ │ ├── 0010-buggy.patch │ │ └── 0010-common.patch │ ├── ndpi │ ├── Dockerfile │ ├── __init__.py │ ├── extra │ │ ├── 0001 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0002 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0003 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ └── 0004 │ │ │ └── .dpp │ │ │ └── test_list │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0002-buggy.patch │ │ ├── 0003-buggy.patch │ │ └── 0004-buggy.patch │ ├── openssl │ ├── Dockerfile │ ├── __init__.py │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0002-buggy.patch │ │ ├── 0003-buggy.patch │ │ ├── 0003-common.patch │ │ ├── 0004-buggy.patch │ │ ├── 0005-buggy.patch │ │ ├── 0006-buggy.patch │ │ ├── 0007-buggy.patch │ │ ├── 0008-buggy.patch │ │ ├── 0009-buggy.patch │ │ ├── 0010-buggy.patch │ │ ├── 0011-buggy.patch │ │ ├── 0012-buggy.patch │ │ ├── 0013-buggy.patch │ │ ├── 0014-buggy.patch │ │ ├── 0014-common.patch │ │ ├── 0015-buggy.patch │ │ ├── 0016-buggy.patch │ │ ├── 0016-common.patch │ │ ├── 0017-buggy.patch │ │ ├── 0018-buggy.patch │ │ ├── 0019-buggy.patch │ │ ├── 0019-common.patch │ │ ├── 0020-buggy.patch │ │ ├── 0021-buggy.patch │ │ ├── 0021-common.patch │ │ ├── 0022-buggy.patch │ │ ├── 0022-common.patch │ │ ├── 0023-buggy.patch │ │ ├── 0024-buggy.patch │ │ ├── 0025-buggy.patch │ │ ├── 0026-buggy.patch │ │ ├── 0026-common.patch │ │ ├── 0027-buggy.patch │ │ └── 0028-buggy.patch │ ├── proj │ ├── Dockerfile │ ├── __init__.py │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0002-buggy.patch │ │ ├── 0003-buggy.patch │ │ ├── 0004-buggy.patch │ │ ├── 0005-buggy.patch │ │ ├── 0006-buggy.patch │ │ ├── 0007-buggy.patch │ │ ├── 0008-buggy.patch │ │ ├── 0009-buggy.patch │ │ ├── 0010-buggy.patch │ │ ├── 0011-buggy.patch │ │ ├── 0012-buggy.patch │ │ ├── 0013-buggy.patch │ │ ├── 0014-buggy.patch │ │ ├── 0015-buggy.patch │ │ ├── 0016-buggy.patch │ │ ├── 0017-buggy.patch │ │ ├── 0018-buggy.patch │ │ ├── 0019-buggy.patch │ │ ├── 0020-buggy.patch │ │ ├── 0021-buggy.patch │ │ ├── 0022-buggy.patch │ │ ├── 0023-buggy.patch │ │ ├── 0023-common.patch │ │ ├── 0024-buggy.patch │ │ ├── 0025-buggy.patch │ │ ├── 0025-common.patch │ │ ├── 0026-buggy.patch │ │ ├── 0026-common.patch │ │ ├── 0027-buggy.patch │ │ └── 0028-buggy.patch │ ├── taxonomy.py │ ├── wget2 │ ├── Dockerfile │ ├── __init__.py │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0001-common.patch │ │ ├── 0002-buggy.patch │ │ ├── 0002-common.patch │ │ ├── 0003-buggy.patch │ │ └── 0003-common.patch │ ├── wireshark │ ├── Dockerfile │ ├── __init__.py │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0001-common.patch │ │ ├── 0002-buggy.patch │ │ ├── 0002-common.patch │ │ ├── 0003-buggy.patch │ │ ├── 0003-common.patch │ │ ├── 0004-buggy.patch │ │ ├── 0004-common.patch │ │ ├── 0005-buggy.patch │ │ ├── 0005-common.patch │ │ ├── 0006-buggy.patch │ │ └── 0006-common.patch │ ├── xbps │ ├── Dockerfile │ ├── __init__.py │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0001-common.patch │ │ ├── 0002-buggy.patch │ │ ├── 0002-common.patch │ │ ├── 0003-buggy.patch │ │ ├── 0003-common.patch │ │ ├── 0004-buggy.patch │ │ ├── 0004-common.patch │ │ ├── 0005-buggy.patch │ │ └── 0005-common.patch │ ├── yaml_cpp │ ├── Dockerfile │ ├── __init__.py │ ├── extra │ │ ├── 0001 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0002 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0003 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0004 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0005 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0006 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0007 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0008 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ ├── 0009 │ │ │ └── .dpp │ │ │ │ └── test_list │ │ └── 0010 │ │ │ └── .dpp │ │ │ └── test_list │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0002-buggy.patch │ │ ├── 0003-buggy.patch │ │ ├── 0004-buggy.patch │ │ ├── 0005-buggy.patch │ │ ├── 0006-buggy.patch │ │ ├── 0007-buggy.patch │ │ ├── 0008-buggy.patch │ │ ├── 0009-buggy.patch │ │ ├── 0010-buggy.patch │ │ └── 0010-common.patch │ ├── yara │ ├── Dockerfile │ ├── __init__.py │ ├── meta.json │ └── patch │ │ ├── 0001-buggy.patch │ │ ├── 0001-split.patch │ │ ├── 0002-buggy.patch │ │ ├── 0002-split.patch │ │ ├── 0003-buggy.patch │ │ ├── 0003-split.patch │ │ ├── 0004-buggy.patch │ │ ├── 0004-split.patch │ │ ├── 0005-buggy.patch │ │ ├── 0005-common.patch │ │ └── 0005-split.patch │ └── zsh │ ├── Dockerfile │ ├── __init__.py │ ├── meta.json │ └── patch │ ├── 0001-buggy.patch │ ├── 0002-buggy.patch │ ├── 0003-buggy.patch │ ├── 0004-buggy.patch │ └── 0005-buggy.patch ├── docs ├── Makefile ├── make.bat ├── requirements.txt └── source │ ├── _templates │ ├── autosummary_class.rst │ ├── autosummary_module.rst │ └── package.rst_t │ ├── changelog.rst │ ├── conf.py │ ├── contribute.rst │ ├── faq.rst │ ├── gen_taxonomy.py │ ├── guide.rst │ ├── index.rst │ ├── installation.rst │ └── license.rst ├── pyproject.toml ├── pytest.ini ├── readme_generator.py ├── requirements.txt ├── requirements_dev.txt ├── script ├── enumerate_case.py └── extract_candidate.py ├── setup.cfg ├── setup.py ├── tests ├── __init__.py ├── conftest.py ├── message │ ├── __init__.py │ └── test_message.py ├── processor │ ├── __init__.py │ ├── test_argparse.py │ ├── test_build_command.py │ ├── test_case_expression.py │ ├── test_checkout.py │ ├── test_docker.py │ ├── test_help.py │ ├── test_search.py │ ├── test_show.py │ ├── test_taxonomy.py │ ├── test_test.py │ ├── test_test_command_callback.py │ └── test_vcs.py ├── resource │ ├── corrupted-test.orig.patch │ └── corrupted-test.patch ├── script │ ├── __init__.py │ └── test_readme_generator.py └── taxonomy │ ├── __init__.py │ ├── conftest.py │ └── test_taxonomy.py ├── tox.ini └── wiki_generator.py /.editorconfig: -------------------------------------------------------------------------------- 1 | # https://editorconfig.org/ 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 4 7 | insert_final_newline = true 8 | trim_trailing_whitespace = true 9 | end_of_line = lf 10 | charset = utf-8 11 | 12 | # Docstrings and comments use max_line_length = 79 13 | [*.py] 14 | max_line_length = 119 15 | 16 | [*.json] 17 | indent_size = 2 18 | insert_final_newline = ignore 19 | 20 | [Makefile] 21 | indent_style = tab 22 | 23 | [*.bat] 24 | indent_style = tab 25 | 26 | [docs/**.txt] 27 | max_line_length = 79 28 | 29 | [*.yml] 30 | indent_size = 2 -------------------------------------------------------------------------------- /.github/workflows/deploy-wiki.yml: -------------------------------------------------------------------------------- 1 | name: Deploy Wiki 2 | 3 | on: 4 | push: 5 | branches: [main] 6 | workflow_dispatch: 7 | 8 | jobs: 9 | deploy-wiki: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v2 13 | - name: Set up Python 3.8 14 | uses: actions/setup-python@v2 15 | with: 16 | python-version: '3.8' 17 | - name: Set up environment 18 | run: | 19 | python -m pip install --upgrade pip 20 | pip install -r requirements_dev.txt 21 | - name: Make Wiki Files 22 | run: | 23 | PYTHONPATH=bugscpp/ python wiki_generator.py 24 | - name: Push Wiki Changes 25 | uses: Andrew-Chen-Wang/github-wiki-action@v3 26 | env: 27 | WIKI_DIR: wiki/ 28 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 29 | GH_MAIL: ${{ secrets.WIKI_AUTHOR_EMAIL }} 30 | GH_NAME: ${{ github.repository_owner }} 31 | -------------------------------------------------------------------------------- /bugscpp/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/__init__.py -------------------------------------------------------------------------------- /bugscpp/command/__init__.py: -------------------------------------------------------------------------------- 1 | from processor.build import BuildCommand 2 | from processor.checkout import CheckoutCommand 3 | from processor.command_list import CommandList 4 | from processor.help import HelpCommand 5 | from processor.search import SearchCommand 6 | from processor.show import ShowCommand 7 | from processor.test import TestCommand 8 | 9 | __all__ = [ 10 | "CommandList", 11 | "BuildCommand", 12 | "CheckoutCommand", 13 | "HelpCommand", 14 | "ShowCommand", 15 | "SearchCommand", 16 | "TestCommand", 17 | ] 18 | -------------------------------------------------------------------------------- /bugscpp/config/__init__.py: -------------------------------------------------------------------------------- 1 | from .config import config 2 | 3 | __all__ = ["config"] 4 | -------------------------------------------------------------------------------- /bugscpp/config/env.py: -------------------------------------------------------------------------------- 1 | """ 2 | Configuration file for controlling defects4cpp. 3 | 4 | """ 5 | import os 6 | from typing import Dict, List 7 | 8 | # Docker username (should be the same with Dockerfile) 9 | DPP_DOCKER_USER: str = "defects4cpp" 10 | # Docker workspace (should be the same with Dockerfile) 11 | DPP_DOCKER_HOME: str = "/home/workspace" 12 | 13 | # meta.json variables 14 | DPP_PARALLEL_BUILD: str = "1" 15 | DPP_COMPILATION_DB_TOOL: str = "bear" 16 | DPP_CMAKE_COMPILATION_DB_TOOL: str = "" 17 | DPP_ADDITIONAL_GCOV_OPTIONS: str = "" 18 | DPP_BUILD_PRE_STEPS: List[Dict[str, any]] = [] 19 | DPP_BUILD_POST_STEPS: List[Dict[str, any]] = [] 20 | 21 | # Directory at which bugcpp.py is placed 22 | DPP_HOME: str = os.path.realpath( 23 | os.path.join(os.path.dirname(os.path.realpath(__file__)), "..") 24 | ) 25 | -------------------------------------------------------------------------------- /bugscpp/errors/common/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/errors/common/__init__.py -------------------------------------------------------------------------------- /bugscpp/errors/common/exception.py: -------------------------------------------------------------------------------- 1 | """ 2 | Base exception class for defects4cpp. 3 | 4 | All user-defined exceptions should inherit from this class. 5 | """ 6 | from os import stat 7 | from stat import filemode 8 | 9 | 10 | class DppError(Exception): 11 | @staticmethod 12 | def print_path(path: str) -> str: 13 | """ 14 | Path with its file stat. 15 | 16 | Parameters 17 | ---------- 18 | path : str 19 | Path to file 20 | 21 | Returns 22 | ------- 23 | str 24 | Return string of path with its stat information. 25 | """ 26 | try: 27 | return f"{filemode(stat(path).st_mode)} {path}" 28 | except FileNotFoundError: 29 | return f"(nonexistent) {path}" 30 | -------------------------------------------------------------------------------- /bugscpp/errors/search.py: -------------------------------------------------------------------------------- 1 | from typing import List 2 | 3 | import processor 4 | from errors import DppError 5 | 6 | 7 | class DppSearchError(DppError): 8 | pass 9 | 10 | 11 | class DppNoSuchTagError(DppSearchError): 12 | def __init__(self, tags: List[str]): 13 | super().__init__( 14 | f"There is no such tag: '{ ', '.join(tags) }'.\n" 15 | f"All possible tags are: '{ ', '.join(processor.search.all_tags) }'." 16 | ) 17 | -------------------------------------------------------------------------------- /bugscpp/message/__init__.py: -------------------------------------------------------------------------------- 1 | from message.message import message 2 | 3 | __all__ = [ 4 | "message", 5 | ] 6 | -------------------------------------------------------------------------------- /bugscpp/processor/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/processor/__init__.py -------------------------------------------------------------------------------- /bugscpp/processor/command_list.py: -------------------------------------------------------------------------------- 1 | """ 2 | Controller 3 | 4 | There should be no deep logic 5 | """ 6 | from collections.abc import Mapping 7 | from typing import Iterator 8 | 9 | from processor.core.command import RegisteredCommands 10 | 11 | 12 | class CommandList(Mapping): 13 | _commands = RegisteredCommands() 14 | 15 | def __init__(self, *args, **kwargs): 16 | pass 17 | 18 | def __getitem__(self, key: str): 19 | return self._commands[self._keytransform(key)] 20 | 21 | def __iter__(self) -> Iterator: 22 | return iter(self._commands) 23 | 24 | def __len__(self) -> int: 25 | return len(self._commands) 26 | 27 | def _keytransform(self, key: str): 28 | return key 29 | -------------------------------------------------------------------------------- /bugscpp/processor/core/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/processor/core/__init__.py -------------------------------------------------------------------------------- /bugscpp/processor/core/shell.py: -------------------------------------------------------------------------------- 1 | """ 2 | Manage commands associated with shell. 3 | 4 | Not fully implemented yet. 5 | """ 6 | import shlex 7 | from shutil import which 8 | from subprocess import PIPE, Popen, SubprocessError 9 | from typing import Optional 10 | 11 | 12 | class Shell: 13 | """ 14 | Run commands with subprocess. 15 | It is highly recommend to use this via `with` statement. 16 | """ 17 | 18 | def __init__(self): 19 | self.subprocess: Optional[Popen] = None 20 | self.shell = "bash" if which("bash") else "cmd" 21 | 22 | def __enter__(self): 23 | try: 24 | self.subprocess = Popen( 25 | self.shell, universal_newlines=True, stdin=PIPE, bufsize=1 26 | ) 27 | except SubprocessError: 28 | # TODO: exception handling required 29 | return None 30 | return self 31 | 32 | def __exit__(self, type, value, traceback): 33 | self.subprocess.communicate(shlex.join(["exit"])) 34 | 35 | def send(self, commands): 36 | for command in commands: 37 | self.subprocess.stdin.write(f"{command}\n") 38 | -------------------------------------------------------------------------------- /bugscpp/processor/core/validator/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/processor/core/validator/__init__.py -------------------------------------------------------------------------------- /bugscpp/processor/core/validator/common_command.py: -------------------------------------------------------------------------------- 1 | import argparse 2 | 3 | from config import config 4 | 5 | 6 | class ValidateCompilationDBTool(argparse.Action): 7 | """ 8 | Validator for compilation db tool argument. 9 | """ 10 | 11 | def __call__( 12 | self, 13 | parser: argparse.ArgumentParser, 14 | namespace: argparse.Namespace, 15 | values: str, 16 | option_string=None, 17 | ): 18 | config.DPP_COMPILATION_DB_TOOL = values 19 | config.DPP_CMAKE_COMPILATION_DB_TOOL = values 20 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/__init__.py: -------------------------------------------------------------------------------- 1 | from taxonomy.taxonomy import Command, CommandType, Common, Defect, Gcov, MetaData, MetaInfo, Taxonomy, TestType 2 | 3 | __all__ = [ 4 | "Taxonomy", 5 | "MetaData", 6 | "MetaInfo", 7 | "Command", 8 | "CommandType", 9 | "Gcov", 10 | "TestType", 11 | "Defect", 12 | "Common", 13 | ] 14 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/berry/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:berry 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/berry/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/berry/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/berry/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From 5528877054de012c16bfb33d0fa49d0179e30d69 Mon Sep 17 00:00:00 2001 2 | From: Hansol Choe 3 | Date: Tue, 19 Dec 2023 00:58:56 +0000 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/be_vm.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/be_vm.c b/src/be_vm.c 11 | index cbf9b38..81004bb 100644 12 | --- a/src/be_vm.c 13 | +++ b/src/be_vm.c 14 | @@ -743,7 +743,7 @@ newframe: /* a new call frame */ 15 | opcase(FLIP): { 16 | bvalue *dst = RA(), *a = RKB(); 17 | if (var_isint(a)) { 18 | - var_setint(dst, ~a->v.i); 19 | + var_setint(dst, -a->v.i); 20 | } else if (var_isinstance(a)) { 21 | ins_unop(vm, "~", *RKB()); 22 | reg = vm->reg; 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/berry/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From 45330804d30faa6c4ffde913810563c128de13b7 Mon Sep 17 00:00:00 2001 2 | From: Hansol Choe 3 | Date: Tue, 19 Dec 2023 05:03:27 +0000 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/be_code.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/src/be_code.c b/src/be_code.c 11 | index 6a332bb..a1b150c 100644 12 | --- a/src/be_code.c 13 | +++ b/src/be_code.c 14 | @@ -578,7 +578,6 @@ static void code_not(bfuncinfo *finfo, bexpdesc *e) 15 | case ETBOOL: e->v.i = !e->v.i; break; 16 | case ETSTRING: e->v.i = 0; break; 17 | default: { 18 | - unaryexp(finfo, OP_MOVE, e); 19 | int temp = e->t; 20 | e->t = e->f; 21 | e->f = temp; 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/berry/patch/0003-buggy.patch: -------------------------------------------------------------------------------- 1 | From 643c5051e04b8a2ee1200fd1e3cdf8a2ad882c0c Mon Sep 17 00:00:00 2001 2 | From: Hansol Choe 3 | Date: Tue, 19 Dec 2023 05:43:41 +0000 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/be_parser.c | 3 +-- 8 | 1 file changed, 1 insertion(+), 2 deletions(-) 9 | 10 | diff --git a/src/be_parser.c b/src/be_parser.c 11 | index 54f997a..cc4ae79 100644 12 | --- a/src/be_parser.c 13 | +++ b/src/be_parser.c 14 | @@ -1420,12 +1420,11 @@ static void classdef_stmt(bparser *parser, bclass *c) 15 | static void class_inherit(bparser *parser, bexpdesc *e) 16 | { 17 | if (next_type(parser) == OptColon) { /* ':' */ 18 | - bexpdesc ec = *e; /* work on a copy because we preserve original class */ 19 | bexpdesc e1; 20 | scan_next_token(parser); /* skip ':' */ 21 | expr(parser, &e1); 22 | check_var(parser, &e1); 23 | - be_code_setsuper(parser->finfo, &ec, &e1); 24 | + be_code_setsuper(parser->finfo, e, &e1); 25 | } 26 | } 27 | 28 | -- 29 | 2.25.1 30 | 31 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/berry/patch/0005-buggy.patch: -------------------------------------------------------------------------------- 1 | From aa90b3e28d136df0d2d5ba72e3771bf21cb3dc64 Mon Sep 17 00:00:00 2001 2 | From: Hansol Choe 3 | Date: Wed, 20 Dec 2023 00:42:58 +0000 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/be_code.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/be_code.c b/src/be_code.c 11 | index 8d4a62b..6886519 100644 12 | --- a/src/be_code.c 13 | +++ b/src/be_code.c 14 | @@ -317,7 +317,7 @@ static void free_suffix(bfuncinfo *finfo, bexpdesc *e) 15 | be_code_freeregs(finfo, 1); 16 | } 17 | /* release object register */ 18 | - if (e->v.ss.tt == ETREG && (int)e->v.ss.obj >= nlocal && (e->v.ss.obj + 1 >= finfo->freereg)) { 19 | + if (e->v.ss.tt == ETREG && (int)e->v.ss.obj >= nlocal) { 20 | be_code_freeregs(finfo, 1); 21 | } 22 | } 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/coreutils/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:coreutils 4 | 5 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/coreutils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/coreutils/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/coreutils/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From 5d90dff1078c9981ec0aa6bf6b9dff52de0f5baf Mon Sep 17 00:00:00 2001 2 | From: Yeongcheol Kim 3 | Date: Mon, 14 Feb 2022 11:58:32 +0900 4 | Subject: [PATCH] 'buggy' 5 | 6 | --- 7 | src/split.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/split.c b/src/split.c 11 | index 9a0704c26..f9c99db43 100644 12 | --- a/src/split.c 13 | +++ b/src/split.c 14 | @@ -982,7 +982,7 @@ bytes_chunk_extract (uintmax_t k, uintmax_t n, char *buf, size_t bufsize, 15 | start = (k - 1) * (file_size / n); 16 | end = (k == n) ? file_size : k * (file_size / n); 17 | 18 | - if (start < initial_read) 19 | + if (initial_read != SIZE_MAX || start < initial_read) 20 | { 21 | memmove (buf, buf + start, initial_read - start); 22 | initial_read -= start; 23 | -- 24 | 2.23.0.windows.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/coreutils/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From 762df71994f7d6f90d0b39d2cb01640bb368dab2 Mon Sep 17 00:00:00 2001 2 | From: Yeongcheol Kim 3 | Date: Mon, 14 Feb 2022 12:09:36 +0900 4 | Subject: [PATCH] 'buggy' 5 | 6 | --- 7 | src/pr.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/pr.c b/src/pr.c 11 | index 26f221f99..20e863760 100644 12 | --- a/src/pr.c 13 | +++ b/src/pr.c 14 | @@ -1233,7 +1233,7 @@ init_parameters (int number_of_files) 15 | } 16 | /* It's rather pointless to define a TAB separator with column 17 | alignment */ 18 | - else if (!join_lines && col_sep_length == 1 && *col_sep_string == '\t') 19 | + else if (!join_lines && *col_sep_string == '\t') 20 | col_sep_string = column_separator; 21 | 22 | truncate_lines = true; 23 | -- 24 | 2.23.0.windows.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cpp_peglib/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:cpp_peglib 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cpp_peglib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/cpp_peglib/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/cpp_peglib/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From 473abf8218f649e5004faac480ef9e1d40dad5d2 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Thu, 11 Aug 2022 16:47:01 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | peglib.h | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/peglib.h b/peglib.h 11 | index fc949de..06d5329 100644 12 | --- a/peglib.h 13 | +++ b/peglib.h 14 | @@ -3445,7 +3445,6 @@ private: 15 | log(line.first, line.second, 16 | "Ignore operator cannot be applied to '" + rule.name + "'."); 17 | } 18 | - ret = false; 19 | } 20 | } 21 | 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cpp_peglib/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From 73a6cc55d26871aae2e82ce40867ea72560440cd Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Thu, 11 Aug 2022 17:53:23 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | peglib.h | 7 +------ 8 | 1 file changed, 1 insertion(+), 6 deletions(-) 9 | 10 | diff --git a/peglib.h b/peglib.h 11 | index 8896bed..bbd0aa7 100644 12 | --- a/peglib.h 13 | +++ b/peglib.h 14 | @@ -2477,12 +2477,7 @@ inline size_t Holder::parse_core(const char *s, size_t n, SemanticValues &sv, 15 | 16 | // Macro reference 17 | // TODO: need packrat support 18 | - if (outer_->is_macro) { 19 | - c.rule_stack.push_back(outer_); 20 | - auto len = ope_->parse(s, n, sv, c, dt); 21 | - c.rule_stack.pop_back(); 22 | - return len; 23 | - } 24 | + if (outer_->is_macro) { return ope_->parse(s, n, sv, c, dt); } 25 | 26 | size_t len; 27 | any val; 28 | -- 29 | 2.25.1 30 | 31 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cpp_peglib/patch/0003-buggy.patch: -------------------------------------------------------------------------------- 1 | From 263c275fe165c0f7a004e4d4f085db4b4b9f436b Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Fri, 12 Aug 2022 08:44:44 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | peglib.h | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/peglib.h b/peglib.h 11 | index 62f143a..c2ba439 100644 12 | --- a/peglib.h 13 | +++ b/peglib.h 14 | @@ -3937,7 +3937,7 @@ public: 15 | template parser &enable_ast() { 16 | for (auto &x : *grammar_) { 17 | auto &rule = x.second; 18 | - if (!rule.action) { add_ast_action(rule); } 19 | + if (!rule.action) { add_ast_action(rule); } 20 | } 21 | return *this; 22 | } 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cpp_peglib/patch/0004-buggy.patch: -------------------------------------------------------------------------------- 1 | From d9081ff9fdd382c27c32a13e6aebe74d922a34c2 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Fri, 12 Aug 2022 09:20:16 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | peglib.h | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/peglib.h b/peglib.h 11 | index dc97278..e1aadb1 100644 12 | --- a/peglib.h 13 | +++ b/peglib.h 14 | @@ -2498,7 +2498,7 @@ inline void LinkReferences::visit(Reference& ope) { 15 | } 16 | 17 | // Check if the reference is a definition rule 18 | - if (!found_param && grammar_.count(ope.name_)) { 19 | + if (grammar_.count(ope.name_)) { 20 | auto& rule = grammar_.at(ope.name_); 21 | ope.rule_ = &rule; 22 | } 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cpp_peglib/patch/0005-buggy.patch: -------------------------------------------------------------------------------- 1 | From fc28f1ad298cef928ab6dec79fabe87ce64fcc87 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Fri, 12 Aug 2022 10:03:40 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | peglib.h | 3 --- 8 | 1 file changed, 3 deletions(-) 9 | 10 | diff --git a/peglib.h b/peglib.h 11 | index 1bc1217..27f4574 100644 12 | --- a/peglib.h 13 | +++ b/peglib.h 14 | @@ -2374,9 +2374,6 @@ inline void DetectLeftRecursion::visit(Reference& ope) { 15 | refs_.insert(ope.name_); 16 | if (ope.rule_) { 17 | ope.rule_->accept(*this); 18 | - if (done_ == false) { 19 | - return; 20 | - } 21 | } 22 | } 23 | done_ = true; 24 | -- 25 | 2.25.1 26 | 27 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cpp_peglib/patch/0006-buggy.patch: -------------------------------------------------------------------------------- 1 | From eea2d3bb06b0c5ab6279c1cc2b8f401a23caaf90 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Fri, 12 Aug 2022 10:38:04 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | peglib.h | 3 --- 8 | 1 file changed, 3 deletions(-) 9 | 10 | diff --git a/peglib.h b/peglib.h 11 | index 7eb9b68..e5d354c 100644 12 | --- a/peglib.h 13 | +++ b/peglib.h 14 | @@ -2029,9 +2029,6 @@ inline void AssignIDToDefinition::visit(Holder& ope) { 15 | 16 | inline void AssignIDToDefinition::visit(Reference& ope) { 17 | if (ope.rule_) { 18 | - for (auto arg: ope.args_) { 19 | - arg->accept(*this); 20 | - } 21 | ope.rule_->accept(*this); 22 | } 23 | } 24 | -- 25 | 2.25.1 26 | 27 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cpp_peglib/patch/0007-buggy.patch: -------------------------------------------------------------------------------- 1 | From 8751a7111905e4df7e7ba5ec21e4e7b3fc5cdb3d Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Fri, 12 Aug 2022 11:36:14 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | peglib.h | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/peglib.h b/peglib.h 11 | index 5763e7b..ebbbe44 100644 12 | --- a/peglib.h 13 | +++ b/peglib.h 14 | @@ -245,7 +245,6 @@ struct SemanticValues : protected std::vector 15 | 16 | // Line number and column at which the matched string is 17 | std::pair line_info() const { 18 | - return peg::line_info(ss, s_); 19 | } 20 | 21 | // Choice number (0 based index) 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cpp_peglib/patch/0008-buggy.patch: -------------------------------------------------------------------------------- 1 | From 995ece14d7cfc62d4ca806950475b2caada09836 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Fri, 12 Aug 2022 16:06:38 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | peglib.h | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/peglib.h b/peglib.h 11 | index 9a0b709..c1dc024 100644 12 | --- a/peglib.h 13 | +++ b/peglib.h 14 | @@ -1588,7 +1588,7 @@ private: 15 | 16 | g["Identifier"] <= seq(g["IdentCont"], g["Spacing"]); 17 | g["IdentCont"] <= seq(g["IdentStart"], zom(g["IdentRest"])); 18 | - g["IdentStart"] <= cls("a-zA-Z_\x80-\xff"); 19 | + g["IdentStart"] <= cls("a-zA-Z_"); 20 | g["IdentRest"] <= cho(g["IdentStart"], cls("0-9")); 21 | 22 | g["Literal"] <= cho(seq(cls("'"), anc(zom(seq(npd(cls("'")), g["Char"]))), cls("'"), g["Spacing"]), 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cpp_peglib/patch/0009-buggy.patch: -------------------------------------------------------------------------------- 1 | From de029679fb8dbc3e666f70e19a34ae063580cf49 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Fri, 12 Aug 2022 16:43:17 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | peglib.h | 8 -------- 8 | 1 file changed, 8 deletions(-) 9 | 10 | diff --git a/peglib.h b/peglib.h 11 | index e3502ee..d5a5165 100644 12 | --- a/peglib.h 13 | +++ b/peglib.h 14 | @@ -1227,10 +1227,6 @@ inline size_t Holder::parse(const char* s, size_t n, SemanticValues& sv, Context 15 | c.packrat(s, outer_->id, len, val, [&](any& val) { 16 | auto& chldsv = c.push(); 17 | 18 | - if (outer_->before) { 19 | - outer_->before(dt); 20 | - } 21 | - 22 | const auto& rule = *ope_; 23 | len = rule.parse(s, n, chldsv, c, dt); 24 | 25 | @@ -1257,10 +1253,6 @@ inline size_t Holder::parse(const char* s, size_t n, SemanticValues& sv, Context 26 | } 27 | } 28 | 29 | - if (outer_->after) { 30 | - outer_->after(dt); 31 | - } 32 | - 33 | c.pop(); 34 | }); 35 | 36 | -- 37 | 2.25.1 38 | 39 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:cppcheck 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/cppcheck/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From 8bc9371072b15aeefd3d78b183a376b85ecd28d3 Mon Sep 17 00:00:00 2001 2 | From: Seyeon 3 | Date: Thu, 16 Sep 2021 14:52:25 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/checkother.cpp | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | 10 | diff --git a/lib/checkother.cpp b/lib/checkother.cpp 11 | index f3dbb07dd..05955edd4 100644 12 | --- a/lib/checkother.cpp 13 | +++ b/lib/checkother.cpp 14 | @@ -443,8 +443,6 @@ void CheckOther::checkRedundantAssignment() 15 | return ChildrenToVisit::none; 16 | if (Token::Match(rhs, "%str%|%num%|%name%") && !rhs->varId()) 17 | return ChildrenToVisit::none; 18 | - if (Token::Match(rhs, ":: %name%") && rhs->hasKnownIntValue()) 19 | - return ChildrenToVisit::none; 20 | if (rhs->isCast()) 21 | return ChildrenToVisit::op2; 22 | trivial = false; 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/patch/0004-buggy.patch: -------------------------------------------------------------------------------- 1 | From d469ff9d03bfa4919ab9144828eae1782ba6114d Mon Sep 17 00:00:00 2001 2 | From: Seyeon 3 | Date: Thu, 16 Sep 2021 15:10:05 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/checkfunctions.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/lib/checkfunctions.cpp b/lib/checkfunctions.cpp 11 | index 324b81581..831103759 100644 12 | --- a/lib/checkfunctions.cpp 13 | +++ b/lib/checkfunctions.cpp 14 | @@ -338,7 +338,7 @@ static const Token *checkMissingReturnScope(const Token *tok, const Library &lib 15 | return nullptr; 16 | if (tok->str() == "goto" && !isForwardJump(tok)) 17 | return nullptr; 18 | - if (Token::Match(tok, "%name% (") && !library.isnotnoreturn(tok)) 19 | + if (Token::Match(tok, "%name% (") && library.isnoreturn(tok)) 20 | return nullptr; 21 | if (Token::Match(tok, "[;{}] %name% :")) 22 | return tok; 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/patch/0005-buggy.patch: -------------------------------------------------------------------------------- 1 | From f1465f2d5cacc77f958fb049f40e08d54f5fb3a3 Mon Sep 17 00:00:00 2001 2 | From: Seyeon 3 | Date: Thu, 16 Sep 2021 15:49:44 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/astutils.cpp | 5 ----- 8 | 1 file changed, 5 deletions(-) 9 | 10 | diff --git a/lib/astutils.cpp b/lib/astutils.cpp 11 | index befd66053..80a752fb2 100644 12 | --- a/lib/astutils.cpp 13 | +++ b/lib/astutils.cpp 14 | @@ -254,11 +254,6 @@ bool isTemporary(bool cpp, const Token* tok, const Library* library, bool unknow 15 | return unknown; 16 | } 17 | } 18 | - if (tok->isCast()) 19 | - return false; 20 | - // Currying a function is unknown in cppcheck 21 | - if (Token::simpleMatch(tok, "(") && Token::simpleMatch(tok->astOperand1(), "(")) 22 | - return unknown; 23 | return true; 24 | } 25 | 26 | -- 27 | 2.25.1 28 | 29 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/patch/0006-buggy.patch: -------------------------------------------------------------------------------- 1 | From e898c33ba0e83dea9d2283c93ef4e1673989e76b Mon Sep 17 00:00:00 2001 2 | From: Seyeon 3 | Date: Thu, 16 Sep 2021 15:56:43 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/checkuninitvar.cpp | 4 +--- 8 | 1 file changed, 1 insertion(+), 3 deletions(-) 9 | 10 | diff --git a/lib/checkuninitvar.cpp b/lib/checkuninitvar.cpp 11 | index 644836cad..023cf28b6 100644 12 | --- a/lib/checkuninitvar.cpp 13 | +++ b/lib/checkuninitvar.cpp 14 | @@ -753,10 +753,8 @@ bool CheckUninitVar::checkScopeForVariable(const Token *tok, const Variable& var 15 | return true; 16 | } 17 | 18 | - if (Token::Match(tok->previous(), "[(,] %name% [,)]")) 19 | - return true; 20 | 21 | - if (Token::Match(tok->previous(), "= %var% . %var% ;") && membervar == tok->strAt(2)) 22 | + else if (Token::Match(tok->previous(), "[(,] %name% [,)]")) 23 | return true; 24 | 25 | } else { 26 | -- 27 | 2.25.1 28 | 29 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/patch/0007-buggy.patch: -------------------------------------------------------------------------------- 1 | From 3e8ac8f713a29c968836797a2b8e2ce9047fe8e5 Mon Sep 17 00:00:00 2001 2 | From: Seyeon 3 | Date: Thu, 16 Sep 2021 15:59:00 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/tokenize.cpp | 3 --- 8 | 1 file changed, 3 deletions(-) 9 | 10 | diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp 11 | index 754d5671c..a5d882e12 100644 12 | --- a/lib/tokenize.cpp 13 | +++ b/lib/tokenize.cpp 14 | @@ -5037,10 +5037,7 @@ void Tokenizer::removeMacrosInGlobalScope() 15 | if (tok2 && tok2->str() == "(") 16 | tok2 = tok2->link()->next(); 17 | 18 | - // Several unknown macros... 19 | - while (Token::Match(tok2, "%type% (") && tok2->isUpperCaseName()) 20 | - tok2 = tok2->linkAt(1)->next(); 21 | 22 | if (Token::Match(tok, "%name% (") && Token::Match(tok2, "%name% *|&|::|<| %name%") && !Token::Match(tok2, "namespace|class|struct|union")) 23 | unknownMacroError(tok); 24 | 25 | -- 26 | 2.25.1 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/patch/0008-buggy.patch: -------------------------------------------------------------------------------- 1 | From fbbc4824ed287c561e8ba8dd397e38089d09b102 Mon Sep 17 00:00:00 2001 2 | From: Seyeon 3 | Date: Fri, 17 Sep 2021 08:08:14 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/astutils.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/lib/astutils.cpp b/lib/astutils.cpp 11 | index bff663e01..d7926d83b 100644 12 | --- a/lib/astutils.cpp 13 | +++ b/lib/astutils.cpp 14 | @@ -1578,7 +1578,7 @@ bool isLikelyStreamRead(bool cpp, const Token *op) 15 | const Token *parent = op; 16 | while (parent->astParent() && parent->astParent()->str() == op->str()) 17 | parent = parent->astParent(); 18 | - if (parent->astParent() && !Token::Match(parent->astParent(), "%oror%|&&|(|,|.|!")) 19 | + if (parent->astParent() && !Token::Match(parent->astParent(), "%oror%|&&|(|,|!")) 20 | return false; 21 | if (op->str() == "&" && parent->astParent()) 22 | return false; 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/patch/0010-buggy.patch: -------------------------------------------------------------------------------- 1 | From 4ba2b764f351c8cb2459bab8f9435ed92d122627 Mon Sep 17 00:00:00 2001 2 | From: Seyeon 3 | Date: Fri, 17 Sep 2021 08:45:23 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/symboldatabase.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp 11 | index 54e9a2cf3..c4f777f29 100644 12 | --- a/lib/symboldatabase.cpp 13 | +++ b/lib/symboldatabase.cpp 14 | @@ -1955,7 +1955,7 @@ const Token * Variable::declEndToken() const 15 | { 16 | Token const * declEnd = typeStartToken(); 17 | while (declEnd && !Token::Match(declEnd, "[;,)={]")) { 18 | - if (declEnd->link() && Token::Match(declEnd,"(|[|<")) 19 | + if (declEnd->link() && Token::Match(declEnd,"(|[")) 20 | declEnd = declEnd->link(); 21 | declEnd = declEnd->next(); 22 | } 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/patch/0011-buggy.patch: -------------------------------------------------------------------------------- 1 | From 99f26c3b4360041e5838c1ee8ff8d05d183a48ac Mon Sep 17 00:00:00 2001 2 | From: Seyeon 3 | Date: Fri, 17 Sep 2021 08:48:27 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/valueflow.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp 11 | index 2575319a4..4ba725f32 100644 12 | --- a/lib/valueflow.cpp 13 | +++ b/lib/valueflow.cpp 14 | @@ -5858,7 +5858,7 @@ static bool isContainerSizeChangedByFunction(const Token *tok, int depth = 20) 15 | if (!ftok) 16 | return false; // not a function => variable not changed 17 | const Function * fun = ftok->function(); 18 | - if (fun && !fun->hasVirtualSpecifier()) { 19 | + if (fun) { 20 | const Variable *arg = fun->getArgumentVar(narg); 21 | if (arg) { 22 | if (!arg->isReference() && !addressOf) 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/patch/0021-buggy.patch: -------------------------------------------------------------------------------- 1 | From 1114c982649c1ca6fd6a3aa05b6672f7cfb6e01a Mon Sep 17 00:00:00 2001 2 | From: Seyeon 3 | Date: Fri, 24 Sep 2021 09:19:04 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/clangimport.cpp | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | 10 | diff --git a/lib/clangimport.cpp b/lib/clangimport.cpp 11 | index bf8165c71..e9a08e244 100644 12 | --- a/lib/clangimport.cpp 13 | +++ b/lib/clangimport.cpp 14 | @@ -497,9 +497,7 @@ const ::Type * clangimport::AstNode::addTypeTokens(TokenList *tokenList, const s 15 | return addTypeTokens(tokenList, str.substr(0, str.find("\':\'") + 1), scope); 16 | } 17 | 18 | - if (str.compare(0, 16, "'enum (anonymous") == 0) 19 | - return nullptr; 20 | 21 | std::string type; 22 | if (str.find(" (") != std::string::npos) { 23 | if (str.find("<") != std::string::npos) 24 | -- 25 | 2.25.1 26 | 27 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/patch/0022-buggy.patch: -------------------------------------------------------------------------------- 1 | From 9df8bfbf93b2ffe6fadc4e98200839a8efc9ccd4 Mon Sep 17 00:00:00 2001 2 | From: Seyeon 3 | Date: Fri, 24 Sep 2021 09:21:12 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/checkuninitvar.cpp | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | 10 | diff --git a/lib/checkuninitvar.cpp b/lib/checkuninitvar.cpp 11 | index 44c6f70af..49f48592b 100644 12 | --- a/lib/checkuninitvar.cpp 13 | +++ b/lib/checkuninitvar.cpp 14 | @@ -1163,9 +1163,7 @@ const Token* CheckUninitVar::isVariableUsage(const Token *vartok, bool pointer, 15 | return nullptr; 16 | } 17 | } 18 | - if (astIsRhs(derefValue) && isLikelyStreamRead(mTokenizer->isCPP(), derefValue->astParent())) 19 | - return nullptr; 20 | 21 | if (mTokenizer->isCPP() && Token::simpleMatch(valueExpr->astParent(), "&") && !valueExpr->astParent()->astParent() && astIsRhs(valueExpr) && Token::Match(valueExpr->astSibling(), "%type%")) 22 | return nullptr; 23 | 24 | -- 25 | 2.25.1 26 | 27 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/patch/0024-buggy.patch: -------------------------------------------------------------------------------- 1 | From a6cc260e3246db4c063a85cfb5616e9b3b11fe42 Mon Sep 17 00:00:00 2001 2 | From: Seyeon 3 | Date: Fri, 24 Sep 2021 09:24:45 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/forwardanalyzer.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/lib/forwardanalyzer.cpp b/lib/forwardanalyzer.cpp 11 | index 8873687a1..ae8df1ca8 100644 12 | --- a/lib/forwardanalyzer.cpp 13 | +++ b/lib/forwardanalyzer.cpp 14 | @@ -299,7 +299,7 @@ struct ForwardTraversal { 15 | if (!condTok->hasKnownIntValue()) { 16 | if (!analyzer->lowerToPossible()) 17 | return Progress::Break; 18 | - } else if (condTok->values().front().intvalue == inElse) { 19 | + } else if (condTok->values().front().intvalue == !inElse) { 20 | return Progress::Break; 21 | } 22 | analyzer->assume(condTok, !inElse, tok); 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/patch/0025-buggy.patch: -------------------------------------------------------------------------------- 1 | From 40e34a69aea310af5b9175e9b7d06cbc28ccf9b0 Mon Sep 17 00:00:00 2001 2 | From: Seyeon 3 | Date: Fri, 24 Sep 2021 09:26:40 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/valueflow.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp 11 | index 93846ae7a..ffcca8394 100644 12 | --- a/lib/valueflow.cpp 13 | +++ b/lib/valueflow.cpp 14 | @@ -3068,7 +3068,7 @@ static bool isLifetimeBorrowed(const ValueType *vt, const ValueType *vtParent) 15 | return false; 16 | if (!vt) 17 | return false; 18 | - if (vt->type != ValueType::UNKNOWN_TYPE && vtParent->type != ValueType::UNKNOWN_TYPE && vtParent->container == vt->container) { 19 | + if (vt->type != ValueType::UNKNOWN_TYPE && vtParent->type != ValueType::UNKNOWN_TYPE) { 20 | if (vtParent->pointer > vt->pointer) 21 | return true; 22 | if (vtParent->pointer < vt->pointer && vtParent->isIntegral()) 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/patch/0029-buggy.patch: -------------------------------------------------------------------------------- 1 | From d4e1d1d5b40edfe4e69238b93d5a5a2e56bddca5 Mon Sep 17 00:00:00 2001 2 | From: Seyeon 3 | Date: Fri, 24 Sep 2021 09:36:24 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/tokenize.cpp | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | 10 | diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp 11 | index 9b4a392a5..92aab2d8f 100644 12 | --- a/lib/tokenize.cpp 13 | +++ b/lib/tokenize.cpp 14 | @@ -10890,8 +10890,6 @@ void Tokenizer::simplifyOperatorName() 15 | op += par->strAt(1); 16 | par = par->tokAt(2); 17 | done = true; 18 | - } else if (par->str() != "(") { 19 | - syntaxError(par); 20 | } 21 | } 22 | 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/cppcheck/patch/0030-buggy.patch: -------------------------------------------------------------------------------- 1 | From fa4ecc3b1c8a2a03ef457f674f49105c59717a99 Mon Sep 17 00:00:00 2001 2 | From: Seyeon 3 | Date: Fri, 24 Sep 2021 10:54:52 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/astutils.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/lib/astutils.cpp b/lib/astutils.cpp 11 | index d7926d83b..031a6f124 100644 12 | --- a/lib/astutils.cpp 13 | +++ b/lib/astutils.cpp 14 | @@ -1353,7 +1353,7 @@ bool isVariableChanged(const Token *tok, int indirect, const Settings *settings, 15 | } 16 | } 17 | 18 | - if (cpp && Token::simpleMatch(tok2->astParent(), ">>") && tok2->astParent()->astOperand2() == tok2 && isLikelyStreamRead(cpp, tok2->astParent())) 19 | + if (isLikelyStreamRead(cpp, tok->previous())) 20 | return true; 21 | 22 | if (isLikelyStream(cpp, tok2)) 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/dlt_daemon/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:dlt_daemon 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/dlt_daemon/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/dlt_daemon/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/dlt_daemon/extra/0001/.dpp/poc.txt: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/dlt_daemon/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From 2d00b1fa9e186149a51199352537eb5a59a2e459 Mon Sep 17 00:00:00 2001 2 | From: HansolChoe 3 | Date: Fri, 29 Jul 2022 09:21:08 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/shared/dlt_common.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c 11 | index d15b1ce..a02bfe2 100644 12 | --- a/src/shared/dlt_common.c 13 | +++ b/src/shared/dlt_common.c 14 | @@ -404,7 +404,7 @@ DltReturnValue dlt_filter_load(DltFilter *filter, const char *filename, int verb 15 | while (!feof(handle)) { 16 | str1[0] = 0; 17 | 18 | - if (fscanf(handle, "%254s", str1) != 1) 19 | + if (fscanf(handle, "%s", str1) != 1) 20 | break; 21 | 22 | if (str1[0] == 0) 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/example/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:example 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/example/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/example/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/example/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From 8f870f886d6372a9bac7fde2316a0437620486fe Mon Sep 17 00:00:00 2001 2 | From: Hansol Choe 3 | Date: Mon, 7 Mar 2022 07:13:05 +0000 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | example.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/example.c b/example.c 11 | index 30e92f8..c3a3f5e 100644 12 | --- a/example.c 13 | +++ b/example.c 14 | @@ -1,7 +1,7 @@ 15 | int func1(int x) { 16 | int y = 100; 17 | y = x; 18 | - if (x > 100) { 19 | + if (x >= 100) { 20 | return -y; 21 | } 22 | return y; 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:exiv2 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/exiv2/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0001/.dpp/test_list: -------------------------------------------------------------------------------- 1 | bash_tests 2 | tiff_test 3 | bugfixes/github 4 | bugfixes/redmine 5 | lens_tests 6 | test_issue_ghsa_9jh3_fcc3_g6hv.py 7 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0002/.dpp/test_list: -------------------------------------------------------------------------------- 1 | bash_tests 2 | tiff_test 3 | bugfixes/github 4 | bugfixes/redmine 5 | test_issue_ghsa_mv9g_fxh2_m49m.py 6 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0003/.dpp/test_list: -------------------------------------------------------------------------------- 1 | bash_tests 2 | tiff_test 3 | bugfixes/github 4 | bugfixes/redmine 5 | test_issue_ghsa_8949_hhfh_j7rj.py 6 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0004/.dpp/test_list: -------------------------------------------------------------------------------- 1 | tiff_test 2 | bugfixes/github 3 | bugfixes/redmine 4 | test_issue_756.py 5 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0005/.dpp/test_list: -------------------------------------------------------------------------------- 1 | bash_tests 2 | tiff_test 3 | bugfixes/github 4 | bugfixes/redmine 5 | test_issue_ghsa_7569_phvm_vwc2.py 6 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0006/.dpp/test_list: -------------------------------------------------------------------------------- 1 | tiff_test 2 | bugfixes/github 3 | bugfixes/redmine 4 | test_issue_790.py 5 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0007/.dpp/test_list: -------------------------------------------------------------------------------- 1 | bash_tests 2 | tiff_test 3 | bugfixes/github 4 | bugfixes/redmine 5 | test_issue_1530.py 6 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0008/.dpp/test_list: -------------------------------------------------------------------------------- 1 | tiff_test 2 | bugfixes/github 3 | bugfixes/redmine 4 | test_issue_789.py 5 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0009/.dpp/test_list: -------------------------------------------------------------------------------- 1 | tiff_test 2 | bugfixes/github 3 | bugfixes/redmine 4 | test_issue_843.py 5 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0010/.dpp/test_list: -------------------------------------------------------------------------------- 1 | tiff_test 2 | bugfixes/github 3 | bugfixes/redmine 4 | test_issue_426.py 5 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0011/.dpp/test_list: -------------------------------------------------------------------------------- 1 | tiff_test 2 | bugfixes/github 3 | bugfixes/redmine 4 | test_issue_867.py 5 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0012/.dpp/test_list: -------------------------------------------------------------------------------- 1 | tiff_test 2 | bugfixes/github 3 | bugfixes/redmine 4 | test_issue_845.py 5 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0013/.dpp/test_list: -------------------------------------------------------------------------------- 1 | tiff_test 2 | bugfixes/github 3 | bugfixes/redmine 4 | test_issue_742.py 5 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0014/.dpp/test_list: -------------------------------------------------------------------------------- 1 | tiff_test 2 | bugfixes/github 3 | bugfixes/redmine 4 | test_issue_590.py 5 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0015/.dpp/test_list: -------------------------------------------------------------------------------- 1 | tiff_test 2 | bugfixes/github 3 | bugfixes/redmine 4 | test_issue_561.py 5 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0016/.dpp/test_list: -------------------------------------------------------------------------------- 1 | bash_tests 2 | tiff_test 3 | bugfixes/github 4 | bugfixes/redmine 5 | lens_tests 6 | test_issue_1706.py 7 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0017/.dpp/test_list: -------------------------------------------------------------------------------- 1 | bash_tests 2 | tiff_test 3 | bugfixes/github 4 | bugfixes/redmine 5 | lens_tests 6 | test_issue_1713.py 7 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0018/.dpp/test_list: -------------------------------------------------------------------------------- 1 | bash_tests 2 | tiff_test 3 | bugfixes/github 4 | bugfixes/redmine 5 | test_issue_1845.py 6 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0019/.dpp/test_list: -------------------------------------------------------------------------------- 1 | bash_tests 2 | tiff_test 3 | bugfixes/github 4 | bugfixes/redmine 5 | lens_tests 6 | test_issue_1881.py 7 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/extra/0020/.dpp/test_list: -------------------------------------------------------------------------------- 1 | bash_tests 2 | tiff_test 3 | bugfixes/github 4 | bugfixes/redmine 5 | lens_tests 6 | test_issue_1969.py 7 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From 1e24b089f4b8fa459271d876c58ac0f037ae71ba Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Fri, 22 Jul 2022 09:36:47 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/jpgimage.cpp | 3 ++- 8 | 1 file changed, 2 insertions(+), 1 deletion(-) 9 | 10 | diff --git a/src/jpgimage.cpp b/src/jpgimage.cpp 11 | index f35e6250..42f2b7d3 100644 12 | --- a/src/jpgimage.cpp 13 | +++ b/src/jpgimage.cpp 14 | @@ -637,8 +637,9 @@ namespace Exiv2 { 15 | // Read size and signature 16 | std::memset(buf.pData_, 0x0, buf.size_); 17 | bufRead = io_->read(buf.pData_, bufMinSize); 18 | - if (io_->error() || bufRead != bufMinSize) 19 | + if (io_->error()) 20 | throw Error(kerFailedToReadImageData); 21 | + if (bufRead != bufMinSize) exit(1); 22 | const uint16_t size = mHasLength[marker] ? getUShort(buf.pData_, bigEndian) : 0; 23 | if (bPrint && mHasLength[marker]) 24 | out << Internal::stringFormat(" | %7d ", size); 25 | -- 26 | 2.25.1 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/patch/0004-buggy.patch: -------------------------------------------------------------------------------- 1 | From 8b08a9e84091915df3b1969992eeb21c12e4c176 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Mon, 25 Jul 2022 09:25:24 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/nikonmn_int.cpp | 8 ++------ 8 | 1 file changed, 2 insertions(+), 6 deletions(-) 9 | 10 | diff --git a/src/nikonmn_int.cpp b/src/nikonmn_int.cpp 11 | index 2c5f3929..f92cc65e 100644 12 | --- a/src/nikonmn_int.cpp 13 | +++ b/src/nikonmn_int.cpp 14 | @@ -370,12 +370,8 @@ namespace Exiv2 { 15 | const ExifData*) 16 | { 17 | if (value.count() >= 1) { 18 | - const unsigned long focusArea = value.toLong(0); 19 | - if (focusArea >= EXV_COUNTOF(nikonFocusarea)) { 20 | - os << "Invalid value"; 21 | - } else { 22 | - os << nikonFocusarea[focusArea]; 23 | - } 24 | + unsigned long focusArea = value.toLong(0); 25 | + os << nikonFocusarea[focusArea]; 26 | } 27 | if (value.count() >= 2) { 28 | os << "; "; 29 | -- 30 | 2.25.1 31 | 32 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/patch/0005-buggy.patch: -------------------------------------------------------------------------------- 1 | From aa6e67843ee0a0e1ef2d589f6d377ed7094c49b1 Mon Sep 17 00:00:00 2001 2 | From: kseo 3 | Date: Mon, 25 Jul 2022 10:48:36 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/jp2image.cpp | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/src/jp2image.cpp b/src/jp2image.cpp 11 | index 573a92f1..d78da712 100644 12 | --- a/src/jp2image.cpp 13 | +++ b/src/jp2image.cpp 14 | @@ -908,7 +908,6 @@ static void boxes_check(size_t b,size_t m) 15 | 16 | case kJp2BoxTypeUuid: 17 | { 18 | - enforce(boxBuf.size_ >= 24, Exiv2::kerCorruptedMetadata); 19 | if(memcmp(boxBuf.pData_ + 8, kJp2UuidExif, 16) == 0) 20 | { 21 | #ifdef EXIV2_DEBUG_MESSAGES 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/patch/0006-buggy.patch: -------------------------------------------------------------------------------- 1 | From fd5474d8db6000a1fce8ba4fdb3e1d1e77f6e052 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Mon, 25 Jul 2022 12:26:39 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/pngimage.cpp | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | 10 | diff --git a/src/pngimage.cpp b/src/pngimage.cpp 11 | index 4ccec39d..23162d95 100644 12 | --- a/src/pngimage.cpp 13 | +++ b/src/pngimage.cpp 14 | @@ -33,7 +33,6 @@ 15 | #include "image_int.hpp" 16 | #include "basicio.hpp" 17 | #include "error.hpp" 18 | -#include "enforce.hpp" 19 | #include "futils.hpp" 20 | #include "types.hpp" 21 | 22 | @@ -469,7 +468,6 @@ namespace Exiv2 { 23 | } 24 | profileName_ = std::string(reinterpret_cast(chunkData.pData_), iccOffset-1); 25 | ++iccOffset; // +1 = 'compressed' flag 26 | - enforce(iccOffset <= chunkLength, Exiv2::kerCorruptedMetadata); 27 | 28 | zlibToDataBuf(chunkData.pData_ + iccOffset, chunkLength - iccOffset, iccProfile_); 29 | #ifdef DEBUG 30 | -- 31 | 2.25.1 32 | 33 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/patch/0010-buggy.patch: -------------------------------------------------------------------------------- 1 | From a1a6d32278a023958e54dbf03e3af684d55843eb Mon Sep 17 00:00:00 2001 2 | From: kseo 3 | Date: Wed, 3 Aug 2022 09:23:51 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/psdimage.cpp | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/src/psdimage.cpp b/src/psdimage.cpp 11 | index 8ed67544..e69dd0d0 100644 12 | --- a/src/psdimage.cpp 13 | +++ b/src/psdimage.cpp 14 | @@ -199,7 +199,6 @@ namespace Exiv2 { 15 | throw Error(kerNotAnImage, "Photoshop"); 16 | } 17 | uint32_t resourcesLength = getULong(buf, bigEndian); 18 | - enforce(resourcesLength < io_->size(), Exiv2::kerCorruptedMetadata); 19 | 20 | while (resourcesLength > 0) 21 | { 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/patch/0013-buggy.patch: -------------------------------------------------------------------------------- 1 | From 07e39c994bd22303bd4cc9b85e713f4f0fc02ca9 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Mon, 22 Aug 2022 15:07:56 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/jp2image.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/jp2image.cpp b/src/jp2image.cpp 11 | index 3ae8c28f..24e2db5c 100644 12 | --- a/src/jp2image.cpp 13 | +++ b/src/jp2image.cpp 14 | @@ -501,7 +501,7 @@ namespace Exiv2 15 | subBox.length = getLong((byte*)&subBox.length, bigEndian); 16 | subBox.type = getLong((byte*)&subBox.type, bigEndian); 17 | 18 | - if (subBox.length < sizeof(box) || subBox.length > io_->size() - io_->tell()) { 19 | + if (subBox.length > io_->size() - io_->tell()) { 20 | throw Error(kerCorruptedMetadata); 21 | } 22 | 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/patch/0015-buggy.patch: -------------------------------------------------------------------------------- 1 | From dfe203829141433c7481a93b1b18609b5013e29d Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Mon, 22 Aug 2022 15:43:37 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/easyaccess.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/easyaccess.cpp b/src/easyaccess.cpp 11 | index 9302d6cc..4962d15d 100644 12 | --- a/src/easyaccess.cpp 13 | +++ b/src/easyaccess.cpp 14 | @@ -175,7 +175,7 @@ namespace Exiv2 { 15 | md = md_st; 16 | break; 17 | } 18 | - while (strcmp(sensKeys->keys[idx++], md_st->key().c_str()) != 0 && idx < sensKeys->count) {} 19 | + while (strcmp(sensKeys->keys[idx++], md_st->key().c_str()) != 0 && idx < cnt) {} 20 | } 21 | break; 22 | } 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/patch/0019-buggy.patch: -------------------------------------------------------------------------------- 1 | From de544cdcb290bed793855d6fb026b656fdd398b9 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Tue, 23 Aug 2022 10:06:08 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/tiffvisitor_int.cpp | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/src/tiffvisitor_int.cpp b/src/tiffvisitor_int.cpp 11 | index c4311098..80a45314 100644 12 | --- a/src/tiffvisitor_int.cpp 13 | +++ b/src/tiffvisitor_int.cpp 14 | @@ -1599,7 +1599,6 @@ namespace Exiv2 { 15 | v->read(pData, size, byteOrder()); 16 | } else { 17 | // Prevent large memory allocations: https://github.com/Exiv2/exiv2/issues/1881 18 | - enforce(isize <= 1024 * 1024, kerCorruptedMetadata); 19 | 20 | // #1143 Write a "hollow" buffer for the preview image 21 | // Sadly: we don't know the exact location of the image in the source (it's near offset) 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/exiv2/patch/0020-buggy.patch: -------------------------------------------------------------------------------- 1 | From 858c994345587c74b9489815ee7e9491fcdea1df Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Tue, 23 Aug 2022 11:33:55 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/exiv2.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/exiv2.cpp b/src/exiv2.cpp 11 | index c353ea04..1abbc59c 100644 12 | --- a/src/exiv2.cpp 13 | +++ b/src/exiv2.cpp 14 | @@ -720,7 +720,7 @@ int Params::evalPrintFlags(const std::string& optArg) 15 | printItems_ |= prHex; 16 | break; 17 | case 'V': 18 | - printItems_ |= prSet | prKey | prType | prValue; 19 | + printItems_ |= prSet | prValue; 20 | break; 21 | default: 22 | std::cerr << progname() << ": " << _("Unrecognized print item") << " `" << i << "'\n"; 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:jerryscript 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/jerryscript/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0001/.dpp/test.js: -------------------------------------------------------------------------------- 1 | function main() { 2 | var v2 = new Float64Array(63797); 3 | var v4 = "d".constructor; 4 | var v6 = [1337,1337,1337,1337]; 5 | var v7 = []; 6 | var v8 = {constructor:v6,a:v7}; 7 | var v9 = v8.a; 8 | var v12 = 0; 9 | v9.toString = v4; 10 | var v14 = new Int16Array(); 11 | do { 12 | function v16(v17,v18,v19) { 13 | 'use strict' 14 | var v20 = Int16Array.toLocaleString(); 15 | var v22 = eval(v20); 16 | } 17 | var v24 = new Promise(v16); 18 | var v25 = v12 + 1; 19 | v12 = v25; 20 | v7[v25] = v14; 21 | } while (v12 < 1337); 22 | } 23 | main(); 24 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0001/.dpp/test_list: -------------------------------------------------------------------------------- 1 | build/tests/unittests-es2015_subset/tests 2 | build/tests/unittests-es2015_subset-debug/tests 3 | build/tests/doctests-es2015_subset/tests 4 | build/tests/doctests-es2015_subset-debug/tests 5 | build/tests/unittests-es5.1/tests 6 | build/tests/unittests-es5.1-debug/tests 7 | build/tests/doctests-es5.1/tests 8 | build/tests/doctests-es5.1-debug/tests 9 | build/tests/unittests-es5.1-debug-init-fini/tests 10 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0002/.dpp/test.js: -------------------------------------------------------------------------------- 1 | var a = new Int32Array(256); 2 | try { 3 | a.sort(function() { 4 | var o = new Proxy(this, { 5 | has: print, 6 | get: function() { 7 | a = true; 8 | return 30; 9 | } 10 | }); 11 | var result = ""; 12 | for (var p in o) 13 | result += o[p]; 14 | }); 15 | assert(false); 16 | } catch (e) { 17 | assert(e instanceof TypeError); 18 | } 19 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0002/.dpp/test_list: -------------------------------------------------------------------------------- 1 | build/tests/unittests-es.next/tests 2 | build/tests/doctests-es.next/tests 3 | build/tests/unittests-es5.1/tests 4 | build/tests/doctests-es5.1/tests 5 | build/tests/unittests-es5.1-init-fini/tests 6 | build/tests/unittests-es5.1-math/tests 7 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0003/.dpp/test.js: -------------------------------------------------------------------------------- 1 | function testAdvanceStringIndex(lastIndex) { 2 | let exec_count = 0; 3 | let last_last_index = -1; 4 | let fake_re = { 5 | exec: () => { 6 | return exec_count++ == 0 ? [""] : null; 7 | }, 8 | 9 | get lastIndex() { 10 | return lastIndex; 11 | }, 12 | 13 | set lastIndex(value) { 14 | }, 15 | 16 | get global() { 17 | return true; 18 | } 19 | }; 20 | 21 | RegExp.prototype[Symbol.match].call(fake_re, "abc"); 22 | } 23 | 24 | testAdvanceStringIndex(0x7ffffff); 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0003/.dpp/test_list: -------------------------------------------------------------------------------- 1 | build/tests/unittests-es.next/tests 2 | build/tests/doctests-es.next/tests 3 | build/tests/unittests-es5.1/tests 4 | build/tests/doctests-es5.1/tests 5 | build/tests/unittests-es5.1-init-fini/tests 6 | build/tests/unittests-es5.1-math/tests 7 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0004/.dpp/test.js: -------------------------------------------------------------------------------- 1 | var a = []; 2 | for (var i = 0; i < 100; i++) 3 | a.push(i + 0.123); 4 | 5 | var b = a.slice(0, {valueOf: function() { a.length = '3'; return 10; }}); 6 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0004/.dpp/test_list: -------------------------------------------------------------------------------- 1 | build/tests/unittests-es.next/tests 2 | build/tests/doctests-es.next/tests 3 | build/tests/unittests-es5.1/tests 4 | build/tests/doctests-es5.1/tests 5 | build/tests/unittests-es5.1-init-fini/tests 6 | build/tests/unittests-es5.1-math/tests 7 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0005/.dpp/test.js: -------------------------------------------------------------------------------- 1 | function test(proxyTarget) { 2 | var { 3 | proxy, 4 | revoke 5 | } = Proxy.revocable(proxyTarget< new Proxy({}, { 6 | get{(target, propertyKey, receiver) { 7 | revoke(); 8 | } 9 | })); 10 | return proxy; 11 | } 12 | 13 | Object.getPrototypeOf(test({})); 14 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0005/.dpp/test_list: -------------------------------------------------------------------------------- 1 | build/tests/unittests-es.next/tests 2 | build/tests/doctests-es.next/tests 3 | build/tests/unittests-es5.1/tests 4 | build/tests/doctests-es5.1/tests 5 | build/tests/unittests-es5.1-init-fini/tests 6 | build/tests/unittests-es5.1-math/tests 7 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0006/.dpp/test.js: -------------------------------------------------------------------------------- 1 | var sab = new SharedArrayBuffer(4); 2 | var a = new Int32Array(sab); 3 | Atomics.add(a, -0, 1); 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0006/.dpp/test_list: -------------------------------------------------------------------------------- 1 | build/tests/unittests-es.next/tests 2 | build/tests/doctests-es.next/tests 3 | build/tests/unittests-es5.1/tests 4 | build/tests/doctests-es5.1/tests 5 | build/tests/unittests-es5.1-init-fini/tests 6 | build/tests/unittests-es5.1-math/tests 7 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0007/.dpp/test_list: -------------------------------------------------------------------------------- 1 | build/tests/unittests-es.next/tests 2 | build/tests/doctests-es.next/tests 3 | build/tests/unittests-es5.1/tests 4 | build/tests/doctests-es5.1/tests 5 | build/tests/unittests-es5.1-init-fini/tests 6 | build/tests/unittests-es5.1-math/tests 7 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0008/.dpp/test.js: -------------------------------------------------------------------------------- 1 | class JSEtest { 2 | set #m(v) { this._v = v; } 3 | 4 | method() { 5 | let self = !this; 6 | function innerFunction() { 7 | self.#m = 'Test262'; 8 | } 9 | innerFunction(); 10 | } 11 | } 12 | 13 | let c = new JSEtest(); 14 | c.method(); 15 | assert.sameValue(c._v, 'Test262'); 16 | let o = {}; 17 | assert.throws(TypeError, function () { 18 | c.method.call(o); 19 | }, 'accessed private setter from an ordinary object'); 20 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0008/.dpp/test_list: -------------------------------------------------------------------------------- 1 | build/tests/unittests-es.next/tests 2 | build/tests/doctests-es.next/tests 3 | build/tests/unittests-es5.1/tests 4 | build/tests/doctests-es5.1/tests 5 | build/tests/unittests-es5.1-init-fini/tests 6 | build/tests/unittests-es5.1-math/tests 7 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0009/.dpp/test.js: -------------------------------------------------------------------------------- 1 | function JSEtest() { 2 | new JSEtest(); 3 | } 4 | 5 | try { 6 | JSEtest(); 7 | } catch (e) { 8 | print(e); 9 | } 10 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0009/.dpp/test_list: -------------------------------------------------------------------------------- 1 | build/tests/unittests-es.next/tests 2 | build/tests/doctests-es.next/tests 3 | build/tests/unittests-es5.1/tests 4 | build/tests/doctests-es5.1/tests 5 | build/tests/unittests-es5.1-init-fini/tests 6 | build/tests/unittests-es5.1-math/tests 7 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0010/.dpp/test.js: -------------------------------------------------------------------------------- 1 | let array = new Array(1); 2 | array.splice(1, 0, array); 3 | array.flat(Infinity); 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0010/.dpp/test_list: -------------------------------------------------------------------------------- 1 | build/tests/unittests-es.next/tests 2 | build/tests/doctests-es.next/tests 3 | build/tests/unittests-es5.1/tests 4 | build/tests/doctests-es5.1/tests 5 | build/tests/unittests-es5.1-init-fini/tests 6 | build/tests/unittests-es5.1-math/tests 7 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0011/.dpp/test_list: -------------------------------------------------------------------------------- 1 | build/tests/unittests-es2015_subset/tests 2 | build/tests/unittests-es2015_subset-debug/tests 3 | build/tests/doctests-es2015_subset/tests 4 | build/tests/doctests-es2015_subset-debug/tests 5 | build/tests/unittests-es5.1/tests 6 | build/tests/unittests-es5.1-debug/tests 7 | build/tests/doctests-es5.1/tests 8 | build/tests/doctests-es5.1-debug/tests 9 | build/tests/unittests-es5.1-debug-init-fini/tests 10 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/extra/0011/.dpp/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.js: -------------------------------------------------------------------------------- 1 | function main() { 2 | var v2 = [1337]; 3 | var v3 = [13.37,v2]; 4 | var v7 = 0; 5 | while (v7 < 6) { 6 | var v10 = [13.37,13.37,"object"]; 7 | var v14 = [13.37]; 8 | var v16 = [v14,v10]; 9 | var v17 = {e:1337,__proto__:v16,valueOf:-9007199254740991,toString:WeakSet}; 10 | var v19 = [Int8Array,v17]; 11 | var v21 = new Map(v19); 12 | var v22 = v3.unshift(0); 13 | } 14 | } 15 | main(); 16 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/patch/0001-common.patch: -------------------------------------------------------------------------------- 1 | From 3e8f606b1bc1124f4b130b00b21d61a551b5e939 Mon Sep 17 00:00:00 2001 2 | From: HansolChoe 3 | Date: Thu, 14 Jul 2022 16:15:23 +0900 4 | Subject: [PATCH] common 5 | 6 | --- 7 | jerry-main/main-unix.c | 8 ++++++++ 8 | 1 file changed, 8 insertions(+) 9 | 10 | diff --git a/jerry-main/main-unix.c b/jerry-main/main-unix.c 11 | index 367f5096..b3cad7c7 100644 12 | --- a/jerry-main/main-unix.c 13 | +++ b/jerry-main/main-unix.c 14 | @@ -469,6 +469,14 @@ init_engine (jerry_init_flag_t flags, /**< initialized flags for the engine */ 15 | register_js_function ("resourceName", jerryx_handler_resource_name); 16 | } /* init_engine */ 17 | 18 | +#ifdef DPP_ENABLE_GCOV 19 | +#include 20 | +void __asan_on_error(void); 21 | +void __asan_on_error(void) { 22 | + __gcov_flush(); 23 | +} 24 | +#endif 25 | + 26 | int 27 | main (int argc, 28 | char **argv) 29 | -- 30 | 2.25.1 31 | 32 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From 5c68476d332cdb1b03cacc99070cfe8a50e1bd16 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Fri, 15 Jul 2022 15:16:52 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | jerry-core/vm/vm.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/jerry-core/vm/vm.c b/jerry-core/vm/vm.c 11 | index b6fef5df..ab40ec01 100644 12 | --- a/jerry-core/vm/vm.c 13 | +++ b/jerry-core/vm/vm.c 14 | @@ -4144,7 +4144,6 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */ 15 | 16 | if (ECMA_IS_VALUE_ERROR (result)) 17 | { 18 | - stack_top_p[-3] = index; 19 | goto error; 20 | } 21 | 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/patch/0002-common.patch: -------------------------------------------------------------------------------- 1 | From 64898d09b71a187bae4a3f7f09d1a97d8780f2d9 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Fri, 15 Jul 2022 15:21:15 +0900 4 | Subject: [PATCH] common 5 | 6 | --- 7 | jerry-main/main-jerry.c | 8 ++++++++ 8 | 1 file changed, 8 insertions(+) 9 | 10 | diff --git a/jerry-main/main-jerry.c b/jerry-main/main-jerry.c 11 | index dbf76349..a3125192 100644 12 | --- a/jerry-main/main-jerry.c 13 | +++ b/jerry-main/main-jerry.c 14 | @@ -45,6 +45,14 @@ context_alloc (size_t size, 15 | } /* context_alloc */ 16 | #endif /* defined (JERRY_EXTERNAL_CONTEXT) && (JERRY_EXTERNAL_CONTEXT == 1) */ 17 | 18 | +#ifdef DPP_ENABLE_GCOV 19 | +#include 20 | +void __asan_on_error(void); 21 | +void __asan_on_error(void) { 22 | + __gcov_flush(); 23 | +} 24 | +#endif 25 | + 26 | int 27 | main (int argc, 28 | char **argv) 29 | -- 30 | 2.25.1 31 | 32 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/patch/0004-common.patch: -------------------------------------------------------------------------------- 1 | From 335e43c3246e6056117cde84d0042556ce742fad Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Mon, 18 Jul 2022 09:59:20 +0900 4 | Subject: [PATCH] common 5 | 6 | --- 7 | jerry-main/main-jerry.c | 8 ++++++++ 8 | 1 file changed, 8 insertions(+) 9 | 10 | diff --git a/jerry-main/main-jerry.c b/jerry-main/main-jerry.c 11 | index dbf76349..f1376c0a 100644 12 | --- a/jerry-main/main-jerry.c 13 | +++ b/jerry-main/main-jerry.c 14 | @@ -45,6 +45,14 @@ context_alloc (size_t size, 15 | } /* context_alloc */ 16 | #endif /* defined (JERRY_EXTERNAL_CONTEXT) && (JERRY_EXTERNAL_CONTEXT == 1) */ 17 | 18 | +#ifdef DPP_ENABLE_GCOV 19 | +#include 20 | +void __asan_on_error(void); 21 | +void __asan_on_error(void) { 22 | + __gcov_flush(); 23 | +} 24 | +#endif 25 | + 26 | int 27 | main (int argc, 28 | char **argv) 29 | -- 30 | 2.25.1 31 | 32 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/patch/0006-buggy.patch: -------------------------------------------------------------------------------- 1 | From 5ea5f3e5576d34232f15e05cf9a735ecd02a5ffd Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Mon, 18 Jul 2022 11:06:34 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | jerry-core/ecma/operations/ecma-atomics-object.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/jerry-core/ecma/operations/ecma-atomeics-object.c b/jerry-core/ecma/operations/ecma-atomics-object.c 11 | index c42ad875..6e2cfd0e 100644 12 | --- a/jerry-core/ecma/operations/ecma-atomics-object.c 13 | +++ b/jerry-core/ecma/operations/ecma-atomics-object.c 14 | @@ -192,8 +192,7 @@ ecma_atomic_read_modify_write (ecma_value_t typedarray, /**< typedArray argument 15 | /* 9. */ 16 | uint32_t indexed_position = ecma_number_to_uint32 (idx) * element_size + offset; 17 | 18 | - ecma_free_value (idx); 19 | 20 | JERRY_UNUSED (indexed_position); 21 | JERRY_UNUSED (element_type); 22 | JERRY_UNUSED (val); 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/patch/0009-buggy.patch: -------------------------------------------------------------------------------- 1 | From 12ba4b205bd426a92d4ac4cf2a4a226317d21c63 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Mon, 18 Jul 2022 14:18:30 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | jerry-core/ecma/operations/ecma-function-object.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/jerry-core/ecma/operations/ecma-function-object.c b/jerry-core/ecma/operations/ecma-function-object.c 11 | index 243e31ad..e4ee3c4a 100644 12 | --- a/jerry-core/ecma/operations/ecma-function-object.c 13 | +++ b/jerry-core/ecma/operations/ecma-function-object.c 14 | @@ -1769,8 +1769,7 @@ ecma_op_function_construct (ecma_object_t *func_obj_p, /**< Function object */ 15 | { 16 | JERRY_ASSERT (func_obj_p != NULL && !ecma_is_lexical_environment (func_obj_p)); 17 | 18 | - ECMA_CHECK_STACK_USAGE (); 19 | 20 | switch (ecma_get_object_type (func_obj_p)) 21 | { 22 | case ECMA_OBJECT_TYPE_FUNCTION: 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/patch/0009-common.patch: -------------------------------------------------------------------------------- 1 | From 26cc109077302ec94e8ad847231ff8b9edabeefe Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Mon, 18 Jul 2022 14:31:47 +0900 4 | Subject: [PATCH] common 5 | 6 | --- 7 | jerry-main/main-jerry.c | 8 ++++++++ 8 | 1 file changed, 8 insertions(+) 9 | 10 | diff --git a/jerry-main/main-jerry.c b/jerry-main/main-jerry.c 11 | index 950f707c..6f0ed145 100644 12 | --- a/jerry-main/main-jerry.c 13 | +++ b/jerry-main/main-jerry.c 14 | @@ -44,6 +44,14 @@ context_alloc (size_t size, void *cb_data_p) 15 | } /* context_alloc */ 16 | #endif /* defined (JERRY_EXTERNAL_CONTEXT) && (JERRY_EXTERNAL_CONTEXT == 1) */ 17 | 18 | +#ifdef DPP_ENABLE_GCOV 19 | +#include 20 | +void __asan_on_error(void); 21 | +void __asan_on_error(void) { 22 | + __gcov_flush(); 23 | +} 24 | +#endif 25 | + 26 | int 27 | main (int argc, char **argv) 28 | { 29 | -- 30 | 2.25.1 31 | 32 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/patch/0010-buggy.patch: -------------------------------------------------------------------------------- 1 | From b189d5e9c9c1661b3654141175de853cd48cfe97 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Tue, 30 Aug 2022 17:02:43 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c b/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c 11 | index 7201a0c2..18724390 100644 12 | --- a/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c 13 | +++ b/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c 14 | @@ -2660,7 +2660,6 @@ ecma_builtin_array_flatten_into_array (ecma_value_t target, /**< target will con 15 | ecma_value_t mapped_value, /**< mapped value */ 16 | ecma_value_t thisArg) /**< this arg */ 17 | { 18 | - ECMA_CHECK_STACK_USAGE (); 19 | 20 | /* 7. */ 21 | ecma_length_t target_index = start; 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/jerryscript/patch/0010-common.patch: -------------------------------------------------------------------------------- 1 | From 7d425a9fc6728308f6233f3ec7119abab7d8efcd Mon Sep 17 00:00:00 2001 2 | From: kseo 3 | Date: Mon, 18 Jul 2022 15:06:38 +0900 4 | Subject: [PATCH] common 5 | 6 | --- 7 | jerry-main/main-jerry.c | 9 +++++++++ 8 | 1 file changed, 9 insertions(+) 9 | 10 | diff --git a/jerry-main/main-jerry.c b/jerry-main/main-jerry.c 11 | index 950f707c..da74be2b 100644 12 | --- a/jerry-main/main-jerry.c 13 | +++ b/jerry-main/main-jerry.c 14 | @@ -44,6 +44,15 @@ context_alloc (size_t size, void *cb_data_p) 15 | } /* context_alloc */ 16 | #endif /* defined (JERRY_EXTERNAL_CONTEXT) && (JERRY_EXTERNAL_CONTEXT == 1) */ 17 | 18 | + 19 | +#ifdef DPP_ENABLE_GCOV 20 | +#include 21 | +void __asan_on_error(void); 22 | +void __asan_on_error(void) { 23 | + __gcov_flush(); 24 | +} 25 | +#endif 26 | + 27 | int 28 | main (int argc, char **argv) 29 | { 30 | -- 31 | 2.25.1 32 | 33 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libchewing/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:libchewing 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libchewing/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/libchewing/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/libchewing/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From 8333e259b3054a12469796609b3be04c279b3afd Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Tue, 14 Sep 2021 14:53:55 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/chewingio.c | 3 ++- 8 | 1 file changed, 2 insertions(+), 1 deletion(-) 9 | 10 | diff --git a/src/chewingio.c b/src/chewingio.c 11 | index 2473c3b..d2cf9ee 100644 12 | --- a/src/chewingio.c 13 | +++ b/src/chewingio.c 14 | @@ -694,7 +694,8 @@ CHEWING_API void chewing_set_ChiEngMode(ChewingContext *ctx, int mode) 15 | 16 | if (mode == CHINESE_MODE || mode == SYMBOL_MODE) { 17 | // remove all data inside buffer as switching mode. 18 | - chewing_clean_bopomofo_buf(ctx); 19 | + BopomofoRemoveAll(&(ctx->data->bopomofoData)); 20 | + MakeOutputWithRtn(ctx->output, ctx->data, KEYSTROKE_ABSORB); 21 | ctx->data->bChiSym = mode; 22 | } 23 | } 24 | -- 25 | 2.30.2 26 | 27 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libchewing/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From 55b9206216f5d2d1b2efae137e7c11ecd4a2ba2b Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Tue, 14 Sep 2021 15:08:05 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/chewingio.c | 3 ++- 8 | 1 file changed, 2 insertions(+), 1 deletion(-) 9 | 10 | diff --git a/src/chewingio.c b/src/chewingio.c 11 | index 0830299..6f10129 100644 12 | --- a/src/chewingio.c 13 | +++ b/src/chewingio.c 14 | @@ -694,7 +694,8 @@ CHEWING_API void chewing_set_ChiEngMode(ChewingContext *ctx, int mode) 15 | 16 | if (mode == CHINESE_MODE || mode == SYMBOL_MODE) { 17 | // remove all data inside buffer as switching mode. 18 | - chewing_clean_bopomofo_buf(ctx); 19 | + BopomofoRemoveAll(&(ctx->data->bopomofoData)); 20 | + MakeOutputWithRtn(ctx->output, ctx->data, KEYSTROKE_ABSORB); 21 | ctx->data->bChiSym = mode; 22 | } 23 | } 24 | -- 25 | 2.30.2 26 | 27 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libchewing/patch/0004-buggy.patch: -------------------------------------------------------------------------------- 1 | From 893c5c92339f91c5c58129ab28c1859cfce225fa Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Tue, 14 Sep 2021 14:56:32 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/chewingio.c | 6 ++++-- 8 | 1 file changed, 4 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/src/chewingio.c b/src/chewingio.c 11 | index 429b992..50d9b4f 100644 12 | --- a/src/chewingio.c 13 | +++ b/src/chewingio.c 14 | @@ -1089,8 +1089,10 @@ CHEWING_API int chewing_handle_Up( ChewingContext *ctx ) 15 | key_buf_cursor--; 16 | 17 | /* close candidate list, compared to Down key to open candidate list. */ 18 | - if ( pgdata->bSelect ) { 19 | - ChoiceEndChoice( pgdata ); 20 | + if ( ! pgdata->symbolKeyBuf[ key_buf_cursor ] ) { 21 | + if ( pgdata->bSelect ) { 22 | + ChoiceEndChoice( pgdata ); 23 | + } 24 | } 25 | 26 | MakeOutputWithRtn( pgo, pgdata, keystrokeRtn ); 27 | -- 28 | 2.30.2 29 | 30 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libchewing/patch/0005-buggy.patch: -------------------------------------------------------------------------------- 1 | From 9012080cb5c866ac048bb6d7be562b3ea12b6fae Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Mon, 29 Aug 2022 11:37:09 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/chewingio.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/src/chewingio.c b/src/chewingio.c 11 | index 8825fe8..a94825d 100644 12 | --- a/src/chewingio.c 13 | +++ b/src/chewingio.c 14 | @@ -1728,7 +1728,6 @@ CHEWING_API int chewing_handle_ShiftSpace(ChewingContext *ctx) 15 | CheckAndResetRange(pgdata); 16 | } 17 | 18 | - chewing_set_ShapeMode(ctx, 1 - chewing_get_ShapeMode(ctx)); 19 | 20 | CallPhrasing(pgdata, 0); 21 | MakeOutputWithRtn(pgo, pgdata, keystrokeRtn); 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libchewing/patch/0006-buggy.patch: -------------------------------------------------------------------------------- 1 | From 9b3525dec2d28037915e198af5444307876bf8b8 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Tue, 14 Sep 2021 14:57:48 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/chewingutil.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/chewingutil.c b/src/chewingutil.c 11 | index 9b31692..d751e0e 100644 12 | --- a/src/chewingutil.c 13 | +++ b/src/chewingutil.c 14 | @@ -542,7 +542,7 @@ int ReleaseChiSymbolBuf( ChewingData *pgdata, ChewingOutput *pgo ) 15 | 16 | throwEnd = CountReleaseNum( pgdata ); 17 | 18 | - pgo->nCommitStr += throwEnd; 19 | + pgo->nCommitStr = throwEnd; 20 | if ( throwEnd ) { 21 | /* 22 | * count how many chinese words in "chiSymbolBuf[ 0 .. (throwEnd - 1)]" 23 | -- 24 | 2.30.2 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libchewing/patch/0007-buggy.patch: -------------------------------------------------------------------------------- 1 | From 527aabe9ce17834b219a69bd91478ba83b4ad6e2 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Tue, 14 Sep 2021 14:58:13 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/chewingutil.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/chewingutil.c b/src/chewingutil.c 11 | index c4d51ae..772f389 100644 12 | --- a/src/chewingutil.c 13 | +++ b/src/chewingutil.c 14 | @@ -729,7 +729,7 @@ int CallPhrasing(ChewingData *pgdata, int all_phrasing) 15 | ch_count++; 16 | else { 17 | pgdata->bArrBrkpt[ch_count] = 1; 18 | - pgdata->bSymbolArrBrkpt[i] = 1; 19 | + pgdata->bSymbolArrBrkpt[ch_count] = 1; 20 | } 21 | } 22 | 23 | -- 24 | 2.30.2 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libchewing/patch/0008-buggy.patch: -------------------------------------------------------------------------------- 1 | From 996eb69323c0bac52a18a42f2ef5fd66a8b34066 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Tue, 14 Sep 2021 14:58:42 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/chewingio.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/chewingio.c b/src/chewingio.c 11 | index 8de3a78..1677969 100644 12 | --- a/src/chewingio.c 13 | +++ b/src/chewingio.c 14 | @@ -1383,7 +1383,7 @@ CHEWING_API int chewing_handle_Numlock( ChewingContext *ctx, int key ) 15 | * and submit the words. 16 | */ 17 | int num = -1; 18 | - if ( key > '0' && key <= '9' ) 19 | + if ( key > '0' && key < '9' ) 20 | num = key - '1'; 21 | else if ( key == '0' ) 22 | num = 9; 23 | -- 24 | 2.30.2 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libssh/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:libssh 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libssh/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/libssh/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:libtiff 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/libtiff/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff/extra/0001/.dpp/CVE-2016-5321.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/libtiff/extra/0001/.dpp/CVE-2016-5321.tif -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff/extra/0002/.dpp/crash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/libtiff/extra/0002/.dpp/crash.gif -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff/extra/0004/.dpp/00123-libtiff-fpe-JPEGSetupEncode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/libtiff/extra/0004/.dpp/00123-libtiff-fpe-JPEGSetupEncode -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff/extra/0005/.dpp/test049: -------------------------------------------------------------------------------- 1 | II*b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000D`0000000000000000000000000000000000000000000000000000000000000000000000000000 -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From 2668b04eba869a667bdb501feb0f8d4d07735d3a Mon Sep 17 00:00:00 2001 2 | From: HansolChoe 3 | Date: Wed, 15 Jun 2022 14:10:23 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | tools/tiffcrop.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c 11 | index e06aa371..73c44c85 100644 12 | --- a/tools/tiffcrop.c 13 | +++ b/tools/tiffcrop.c 14 | @@ -989,7 +989,7 @@ static int readSeparateTilesIntoBuffer (TIFF* in, uint8 *obuf, 15 | nrow = (row + tl > imagelength) ? imagelength - row : tl; 16 | for (col = 0; col < imagewidth; col += tw) 17 | { 18 | - for (s = 0; s < spp && s < MAX_SAMPLES; s++) 19 | + for (s = 0; s < spp; s++) 20 | { /* Read each plane of a tile set into srcbuffs[s] */ 21 | tbytes = TIFFReadTile(in, srcbuffs[s], col, row, 0, s); 22 | if (tbytes < 0 && !ignore) 23 | -- 24 | 2.25.1 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From f53549bc843083347bf9f49e703f6a6f65740e54 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Tue, 23 Aug 2022 14:19:56 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | tools/gif2tiff.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/tools/gif2tiff.c b/tools/gif2tiff.c 11 | index 6311d064..196023cd 100644 12 | --- a/tools/gif2tiff.c 13 | +++ b/tools/gif2tiff.c 14 | @@ -370,7 +370,7 @@ readextension(void) 15 | int status = 1; 16 | 17 | (void) getc(infile); 18 | - while ((count = getc(infile)) && count >= 0 && count <= 255) 19 | + while ((count = getc(infile)) && count <= 255) 20 | if (fread(buf, 1, count, infile) != (size_t) count) { 21 | fprintf(stderr, "short read from file %s (%s)\n", 22 | filename, strerror(errno)); 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff/patch/0003-buggy.patch: -------------------------------------------------------------------------------- 1 | From 1a425a832344d0474d13f15bd0ab000bf45625b3 Mon Sep 17 00:00:00 2001 2 | From: HansolChoe 3 | Date: Wed, 15 Jun 2022 14:40:53 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | tools/rgb2ycbcr.c | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | 10 | diff --git a/tools/rgb2ycbcr.c b/tools/rgb2ycbcr.c 11 | index d03377a8..edce4c5b 100644 12 | --- a/tools/rgb2ycbcr.c 13 | +++ b/tools/rgb2ycbcr.c 14 | @@ -116,8 +116,6 @@ main(int argc, char* argv[]) 15 | break; 16 | case 'h': 17 | horizSubSampling = atoi(optarg); 18 | - if( horizSubSampling != 1 && horizSubSampling != 2 && horizSubSampling != 4 ) 19 | - usage(-1); 20 | break; 21 | case 'v': 22 | vertSubSampling = atoi(optarg); 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff/patch/0004-buggy.patch: -------------------------------------------------------------------------------- 1 | From 339eac28e1d45692bca4a5af592fec43b36d2978 Mon Sep 17 00:00:00 2001 2 | From: Peter Kwon 3 | Date: Mon, 14 Feb 2022 06:12:54 +0000 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | libtiff/tif_jpeg.c | 6 ------ 8 | 1 file changed, 6 deletions(-) 9 | 10 | diff --git a/libtiff/tif_jpeg.c b/libtiff/tif_jpeg.c 11 | index 6c17c388..38595f98 100644 12 | --- a/libtiff/tif_jpeg.c 13 | +++ b/libtiff/tif_jpeg.c 14 | @@ -1626,13 +1626,7 @@ JPEGSetupEncode(TIFF* tif) 15 | case PHOTOMETRIC_YCBCR: 16 | sp->h_sampling = td->td_ycbcrsubsampling[0]; 17 | sp->v_sampling = td->td_ycbcrsubsampling[1]; 18 | - if( sp->h_sampling == 0 || sp->v_sampling == 0 ) 19 | - { 20 | - TIFFErrorExt(tif->tif_clientdata, module, 21 | - "Invalig horizontal/vertical sampling value"); 22 | - return (0); 23 | - } 24 | 25 | /* 26 | * A ReferenceBlackWhite field *must* be present since the 27 | * default value is inappropriate for YCbCr. Fill in the 28 | -- 29 | 2.25.1 30 | 31 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff/patch/0005-buggy.patch: -------------------------------------------------------------------------------- 1 | From d4e2ab8b9a60879b5f73e0b641de375018e27563 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Wed, 31 Aug 2022 08:32:57 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | libtiff/tif_strip.c | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | 10 | diff --git a/libtiff/tif_strip.c b/libtiff/tif_strip.c 11 | index 4c46ecf5..769590ab 100644 12 | --- a/libtiff/tif_strip.c 13 | +++ b/libtiff/tif_strip.c 14 | @@ -69,8 +69,6 @@ TIFFNumberOfStrips(TIFF* tif) 15 | after the initial affectation of td_nstrips = TIFFNumberOfStrips() in 16 | tif_dirread.c ~line 3612. 17 | See http://bugzilla.maptools.org/show_bug.cgi?id=2587 */ 18 | - if( td->td_nstrips ) 19 | - return td->td_nstrips; 20 | 21 | nstrips = (td->td_rowsperstrip == (uint32) -1 ? 1 : 22 | TIFFhowmany_32(td->td_imagelength, td->td_rowsperstrip)); 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff/patch/0005-common.patch: -------------------------------------------------------------------------------- 1 | From 59a2ca6a1d77f225ef025665a5ad914eb3e4c83d Mon Sep 17 00:00:00 2001 2 | From: Peter Kwon 3 | Date: Mon, 21 Feb 2022 01:11:04 +0000 4 | Subject: [PATCH] common 5 | 6 | --- 7 | test/Makefile.am | 2 ++ 8 | 1 file changed, 2 insertions(+) 9 | 10 | diff --git a/test/Makefile.am b/test/Makefile.am 11 | index 0aca56fc..074eb405 100644 12 | --- a/test/Makefile.am 13 | +++ b/test/Makefile.am 14 | @@ -317,3 +317,5 @@ generate-tiffcrop-tests: \ 15 | generate-tests: \ 16 | generate-tiff2rgba-tests \ 17 | generate-tiffcrop-tests 18 | + 19 | +print-TESTS: ; @echo $(TESTS) 20 | -- 21 | 2.25.1 22 | 23 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff_sanitizer/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:libtiff_sanitizer 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff_sanitizer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/libtiff_sanitizer/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff_sanitizer/extra/0001/.dpp/00107-libtiff-heapoverflow-PSDataColorContig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/libtiff_sanitizer/extra/0001/.dpp/00107-libtiff-heapoverflow-PSDataColorContig -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff_sanitizer/extra/0002/.dpp/00112-libtiff-heapoverflow-_TIFFmemcpy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/libtiff_sanitizer/extra/0002/.dpp/00112-libtiff-heapoverflow-_TIFFmemcpy -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff_sanitizer/extra/0003/.dpp/00119-libtiff-shift-long-tif_jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/libtiff_sanitizer/extra/0003/.dpp/00119-libtiff-shift-long-tif_jpeg -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff_sanitizer/extra/0004/.dpp/00083-libtiff-fpe-OJPEGDecodeRaw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/libtiff_sanitizer/extra/0004/.dpp/00083-libtiff-fpe-OJPEGDecodeRaw -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff_sanitizer/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From 14b784195c2a941f140acc86d636278c66fcb258 Mon Sep 17 00:00:00 2001 2 | From: HansolChoe 3 | Date: Thu, 16 Jun 2022 14:37:17 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | tools/tiff2ps.c | 5 ----- 8 | 1 file changed, 5 deletions(-) 9 | 10 | diff --git a/tools/tiff2ps.c b/tools/tiff2ps.c 11 | index 43b5e53c..277f7585 100644 12 | --- a/tools/tiff2ps.c 13 | +++ b/tools/tiff2ps.c 14 | @@ -2466,11 +2466,6 @@ PSDataColorContig(FILE* fd, TIFF* tif, uint32 w, uint32 h, int nc) 15 | unsigned char *cp, c; 16 | 17 | (void) w; 18 | - if( es <= 0 ) 19 | - { 20 | - TIFFError(filename, "Inconsistent value of es: %d", es); 21 | - return; 22 | - } 23 | tf_buf = (unsigned char *) _TIFFmalloc(tf_bytesperrow); 24 | if (tf_buf == NULL) { 25 | TIFFError(filename, "No space for scanline buffer"); 26 | -- 27 | 2.25.1 28 | 29 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff_sanitizer/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From fd5701fa5ae6abb04bdfda292303c7dee2d661c2 Mon Sep 17 00:00:00 2001 2 | From: HansolChoe 3 | Date: Thu, 16 Jun 2022 14:51:10 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | tools/tiff2pdf.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/tools/tiff2pdf.c b/tools/tiff2pdf.c 11 | index 715a6629..098cac11 100644 12 | --- a/tools/tiff2pdf.c 13 | +++ b/tools/tiff2pdf.c 14 | @@ -2923,7 +2923,7 @@ tsize_t t2p_readwrite_pdf_image_tile(T2P* t2p, TIFF* input, TIFF* output, ttile_ 15 | return(0); 16 | } 17 | if(TIFFGetField(input, TIFFTAG_JPEGTABLES, &count, &jpt) != 0) { 18 | - if (count > 4) { 19 | + if (count >= 4) { 20 | int retTIFFReadRawTile; 21 | /* Ignore EOI marker of JpegTables */ 22 | _TIFFmemcpy(buffer, jpt, count - 2); 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libtiff_sanitizer/patch/0003-buggy.patch: -------------------------------------------------------------------------------- 1 | From 69c9784728cc0a3474ed702d0dd118d86b268f2a Mon Sep 17 00:00:00 2001 2 | From: Peter Kwon 3 | Date: Mon, 21 Feb 2022 04:56:05 +0000 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | libtiff/tif_jpeg.c | 7 ------- 8 | 1 file changed, 7 deletions(-) 9 | 10 | diff --git a/libtiff/tif_jpeg.c b/libtiff/tif_jpeg.c 11 | index 192989a9..6c17c388 100644 12 | --- a/libtiff/tif_jpeg.c 13 | +++ b/libtiff/tif_jpeg.c 14 | @@ -1632,13 +1632,6 @@ JPEGSetupEncode(TIFF* tif) 15 | "Invalig horizontal/vertical sampling value"); 16 | return (0); 17 | } 18 | - if( td->td_bitspersample > 16 ) 19 | - { 20 | - TIFFErrorExt(tif->tif_clientdata, module, 21 | - "BitsPerSample %d not allowed for JPEG", 22 | - td->td_bitspersample); 23 | - return (0); 24 | - } 25 | 26 | /* 27 | * A ReferenceBlackWhite field *must* be present since the 28 | -- 29 | 2.25.1 30 | 31 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libucl/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:libucl 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libucl/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/libucl/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/libucl/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From f6e2c8387d1c8b7a24e5cd4bbc21ee2024ccc541 Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Wed, 15 Sep 2021 11:40:04 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/ucl_parser.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/src/ucl_parser.c b/src/ucl_parser.c 11 | index 5dee8a4..3d3689f 100755 12 | --- a/src/ucl_parser.c 13 | +++ b/src/ucl_parser.c 14 | @@ -1831,7 +1831,6 @@ ucl_parse_macro_arguments (struct ucl_parser *parser, 15 | if (chunk->remain == 0) { 16 | goto restore_chunk; 17 | } 18 | - args_len ++; 19 | ucl_chunk_skipc (chunk, p); 20 | break; 21 | case 99: 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libucl/patch/0003-buggy.patch: -------------------------------------------------------------------------------- 1 | From 60da2817c60e5083a0d78ae6d52e343cf8c1ffe2 Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Wed, 15 Sep 2021 11:40:32 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/ucl_parser.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/src/ucl_parser.c b/src/ucl_parser.c 11 | index 75acba8..704eea1 100755 12 | --- a/src/ucl_parser.c 13 | +++ b/src/ucl_parser.c 14 | @@ -1016,7 +1016,6 @@ ucl_parse_key (struct ucl_parser *parser, struct ucl_chunk *chunk, bool *next_ke 15 | ucl_chunk_skipc (chunk, p); 16 | parser->prev_state = parser->state; 17 | parser->state = UCL_STATE_MACRO_NAME; 18 | - *end_of_object = false; 19 | return true; 20 | } 21 | while (p < chunk->end) { 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libucl/patch/0004-buggy.patch: -------------------------------------------------------------------------------- 1 | From 09a49572aa32dc7b7e349c21bdd7fb984e844b3f Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Wed, 15 Sep 2021 11:40:55 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/ucl_parser.c | 4 ---- 8 | 1 file changed, 4 deletions(-) 9 | 10 | diff --git a/src/ucl_parser.c b/src/ucl_parser.c 11 | index e51a54b..53cefe0 100644 12 | --- a/src/ucl_parser.c 13 | +++ b/src/ucl_parser.c 14 | @@ -1662,10 +1662,6 @@ ucl_state_machine (struct ucl_parser *parser) 15 | } 16 | else { 17 | /* Skip any spaces */ 18 | - while (p < chunk->end && ucl_test_character (*p, 19 | - UCL_CHARACTER_WHITESPACE_UNSAFE)) { 20 | - ucl_chunk_skipc (chunk, p); 21 | - } 22 | p = chunk->pos; 23 | if (*p == '[') { 24 | parser->state = UCL_STATE_VALUE; 25 | -- 26 | 2.25.1 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libucl/patch/0005-buggy.patch: -------------------------------------------------------------------------------- 1 | From bb7fdc65e28401b21933acfa0aee67a0aaeb291c Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Wed, 15 Sep 2021 11:42:36 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/ucl_parser.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/src/ucl_parser.c b/src/ucl_parser.c 11 | index 75acba8..704eea1 100755 12 | --- a/src/ucl_parser.c 13 | +++ b/src/ucl_parser.c 14 | @@ -1016,7 +1016,6 @@ ucl_parse_key (struct ucl_parser *parser, struct ucl_chunk *chunk, bool *next_ke 15 | ucl_chunk_skipc (chunk, p); 16 | parser->prev_state = parser->state; 17 | parser->state = UCL_STATE_MACRO_NAME; 18 | - *end_of_object = false; 19 | return true; 20 | } 21 | while (p < chunk->end) { 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libucl/patch/0006-buggy.patch: -------------------------------------------------------------------------------- 1 | From 8073c3f725286880db32d4d621e9c6c279de622b Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Wed, 15 Sep 2021 11:45:08 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/ucl_parser.c | 4 ---- 8 | 1 file changed, 4 deletions(-) 9 | 10 | diff --git a/src/ucl_parser.c b/src/ucl_parser.c 11 | index e51a54b..53cefe0 100644 12 | --- a/src/ucl_parser.c 13 | +++ b/src/ucl_parser.c 14 | @@ -1662,10 +1662,6 @@ ucl_state_machine (struct ucl_parser *parser) 15 | } 16 | else { 17 | /* Skip any spaces */ 18 | - while (p < chunk->end && ucl_test_character (*p, 19 | - UCL_CHARACTER_WHITESPACE_UNSAFE)) { 20 | - ucl_chunk_skipc (chunk, p); 21 | - } 22 | p = chunk->pos; 23 | if (*p == '[') { 24 | parser->state = UCL_STATE_VALUE; 25 | -- 26 | 2.25.1 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libxml2/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:libxml2 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libxml2/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/libxml2/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/libxml2/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From 2f2c2c7fd2f8725ccfc8eb7fae83e3da416ab28b Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Tue, 30 Aug 2022 17:11:37 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | HTMLparser.c | 4 ---- 8 | 1 file changed, 4 deletions(-) 9 | 10 | diff --git a/HTMLparser.c b/HTMLparser.c 11 | index 1c112cc9..c9f0a9a3 100644 12 | --- a/HTMLparser.c 13 | +++ b/HTMLparser.c 14 | @@ -2472,8 +2472,6 @@ htmlParseName(htmlParserCtxtPtr ctxt) { 15 | (*in == ':') || (*in == '.')) 16 | in++; 17 | 18 | - if (in == ctxt->input->end) 19 | - return(NULL); 20 | 21 | if ((*in > 0) && (*in < 0x80)) { 22 | count = in - ctxt->input->cur; 23 | @@ -2519,8 +2517,6 @@ htmlParseNameComplex(xmlParserCtxtPtr ctxt) { 24 | c = CUR_CHAR(l); 25 | } 26 | 27 | - if (ctxt->input->base > ctxt->input->cur - len) 28 | - return(NULL); 29 | 30 | return(xmlDictLookup(ctxt->dict, ctxt->input->cur - len, len)); 31 | } 32 | -- 33 | 2.25.1 34 | 35 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libxml2/patch/0003-buggy.patch: -------------------------------------------------------------------------------- 1 | From 5c566db21ca19dc174fe673c96a54ca8091134a2 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Tue, 2 Aug 2022 10:24:46 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | parser.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/parser.c b/parser.c 11 | index ea0e89ea..7b2a125d 100644 12 | --- a/parser.c 13 | +++ b/parser.c 14 | @@ -6708,7 +6708,6 @@ xmlParseElementDecl(xmlParserCtxtPtr ctxt) { 15 | if (!IS_BLANK_CH(CUR)) { 16 | xmlFatalErrMsg(ctxt, XML_ERR_SPACE_REQUIRED, 17 | "Space required after 'ELEMENT'\n"); 18 | - return(-1); 19 | } 20 | SKIP_BLANKS; 21 | name = xmlParseName(ctxt); 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libxml2/patch/0004-buggy.patch: -------------------------------------------------------------------------------- 1 | From 7a6112afa662687efa7470c5d0b81eb4c5a1fbcb Mon Sep 17 00:00:00 2001 2 | From: kseo 3 | Date: Tue, 2 Aug 2022 09:37:21 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | parser.c | 4 +--- 8 | 1 file changed, 1 insertion(+), 3 deletions(-) 9 | 10 | diff --git a/parser.c b/parser.c 11 | index a0183f24..a923191c 100644 12 | --- a/parser.c 13 | +++ b/parser.c 14 | @@ -6933,9 +6933,7 @@ xmlParseReference(xmlParserCtxtPtr ctxt) { 15 | * far more secure as the parser will only process data coming from 16 | * the document entity by default. 17 | */ 18 | - if ((ent->checked == 0) && 19 | - ((ent->etype != XML_EXTERNAL_GENERAL_PARSED_ENTITY) || 20 | - (ctxt->options & (XML_PARSE_NOENT | XML_PARSE_DTDVALID)))) { 21 | + if (ent->checked == 0) { 22 | unsigned long oldnbent = ctxt->nbentities; 23 | 24 | /* 25 | -- 26 | 2.25.1 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libxml2/patch/0005-common.patch: -------------------------------------------------------------------------------- 1 | From d100b9e458e55e74a10e3878e3fd131c1745152d Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Tue, 2 Aug 2022 11:41:01 +0900 4 | Subject: [PATCH] common 5 | 6 | --- 7 | runtest.c | 8 ++++++++ 8 | 1 file changed, 8 insertions(+) 9 | 10 | diff --git a/runtest.c b/runtest.c 11 | index 378b38e3..6712c170 100644 12 | --- a/runtest.c 13 | +++ b/runtest.c 14 | @@ -4392,7 +4392,15 @@ launchTests(testDescPtr tst) { 15 | 16 | globbuf.gl_offs = 0; 17 | glob(tst->in, GLOB_DOOFFS, NULL, &globbuf); 18 | + const char * DPP_RUN_ERROR_CASE = getenv("DPP_RUN_ERROR_CASE"); 19 | for (i = 0;i < globbuf.gl_pathc;i++) { 20 | + if (DPP_RUN_ERROR_CASE && !strcmp(DPP_RUN_ERROR_CASE, "1")) { 21 | + if (strstr(globbuf.gl_pathv[i], "test/valid/766956.xml") == NULL) 22 | + continue; 23 | + } else { 24 | + if (strstr(globbuf.gl_pathv[i], "test/valid/766956.xml")) 25 | + continue; 26 | + } 27 | if (!checkTestFile(globbuf.gl_pathv[i])) 28 | continue; 29 | if (tst->suffix != NULL) { 30 | -- 31 | 2.25.1 32 | 33 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libxml2/patch/0006-buggy.patch: -------------------------------------------------------------------------------- 1 | From 8a45e386547a1a504a34fe35c44e2c83747d7ba3 Mon Sep 17 00:00:00 2001 2 | From: kseo 3 | Date: Tue, 2 Aug 2022 11:40:37 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | parser.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/parser.c b/parser.c 11 | index 51452a25..8d8dc239 100644 12 | --- a/parser.c 13 | +++ b/parser.c 14 | @@ -2252,7 +2252,6 @@ xmlPushInput(xmlParserCtxtPtr ctxt, xmlParserInputPtr input) { 15 | } 16 | if (((ctxt->inputNr > 40) && ((ctxt->options & XML_PARSE_HUGE) == 0)) || 17 | (ctxt->inputNr > 1024)) { 18 | - xmlFatalErr(ctxt, XML_ERR_ENTITY_LOOP, NULL); 19 | while (ctxt->inputNr > 1) 20 | xmlFreeInputStream(inputPop(ctxt)); 21 | return(-1); 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/libxml2/patch/0007-buggy.patch: -------------------------------------------------------------------------------- 1 | From 96865bbd25fcfc1d6bd4a63b7374fbdea4c48c86 Mon Sep 17 00:00:00 2001 2 | From: kseo 3 | Date: Tue, 2 Aug 2022 15:02:48 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | parser.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/parser.c b/parser.c 11 | index 0677030c..c5741e3b 100644 12 | --- a/parser.c 13 | +++ b/parser.c 14 | @@ -8468,7 +8468,6 @@ xmlParseInternalSubset(xmlParserCtxtPtr ctxt) { 15 | */ 16 | if (RAW != '>') { 17 | xmlFatalErr(ctxt, XML_ERR_DOCTYPE_NOT_FINISHED, NULL); 18 | - return; 19 | } 20 | NEXT; 21 | } 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:18.04 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/md4c/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/extra/0001/.dpp/test_list: -------------------------------------------------------------------------------- 1 | python test/spec_tests.py -s test/spec.txt -p "build/md2html/md2html" 2 | python test/spec_tests.py -s test/coverage.txt -p "build/md2html/md2html" 3 | python test/spec_tests.py -s test/permissive-email-autolinks.txt -p "build/md2html/md2html --fpermissive-email-autolinks" 4 | python test/spec_tests.py -s test/permissive-url-autolinks.txt -p "build/md2html/md2html --fpermissive-url-autolinks" 5 | python test/spec_tests.py -s test/permissive-www-autolinks.txt -p "build/md2html/md2html --fpermissive-www-autolinks" 6 | python test/spec_tests.py -s test/tables.txt -p "build/md2html/md2html --ftables" --skip 15 7 | python test/spec_tests.py -s test/strikethrough.txt -p "build/md2html/md2html --fstrikethrough" 8 | python test/pathological_tests.py -p "build/md2html/md2html" 9 | python test/spec_tests.py -s test/tables.txt -p "build/md2html/md2html --ftables" --number 15 10 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/extra/0002/.dpp/test_list: -------------------------------------------------------------------------------- 1 | python test/spec_tests.py -s test/spec.txt -p "build/md2html/md2html" 2 | python test/spec_tests.py -s test/coverage.txt -p "build/md2html/md2html" --skip 15 3 | python test/spec_tests.py -s test/permissive-email-autolinks.txt -p "build/md2html/md2html --fpermissive-email-autolinks" 4 | python test/spec_tests.py -s test/permissive-url-autolinks.txt -p "build/md2html/md2html --fpermissive-url-autolinks" 5 | python test/spec_tests.py -s test/permissive-www-autolinks.txt -p "build/md2html/md2html --fpermissive-www-autolinks" 6 | python test/spec_tests.py -s test/tables.txt -p "build/md2html/md2html --ftables" 7 | python test/spec_tests.py -s test/strikethrough.txt -p "build/md2html/md2html --fstrikethrough" 8 | python test/pathological_tests.py -p "build/md2html/md2html" 9 | python test/spec_tests.py -s test/coverage.txt -p "build/md2html/md2html" --number 15 10 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/extra/0003/.dpp/test_list: -------------------------------------------------------------------------------- 1 | python test/spec_tests.py -s test/spec.txt -p "build/md2html/md2html" 2 | python test/spec_tests.py -s test/coverage.txt -p "build/md2html/md2html" --skip 13 3 | python test/spec_tests.py -s test/permissive-email-autolinks.txt -p "build/md2html/md2html --fpermissive-email-autolinks" 4 | python test/spec_tests.py -s test/permissive-url-autolinks.txt -p "build/md2html/md2html --fpermissive-url-autolinks" 5 | python test/spec_tests.py -s test/permissive-www-autolinks.txt -p "build/md2html/md2html --fpermissive-www-autolinks" 6 | python test/spec_tests.py -s test/tables.txt -p "build/md2html/md2html --ftables" 7 | python test/spec_tests.py -s test/strikethrough.txt -p "build/md2html/md2html --fstrikethrough" 8 | python test/pathological_tests.py -p "build/md2html/md2html" 9 | python test/spec_tests.py -s test/coverage.txt -p "build/md2html/md2html" --number 13 10 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/extra/0008/.dpp/test_list: -------------------------------------------------------------------------------- 1 | python test/spec_tests.py -s test/spec.txt -p "build/md2html/md2html" 2 | python test/spec_tests.py -s test/coverage.txt -p "build/md2html/md2html" --skip 19 3 | python test/spec_tests.py -s test/permissive-email-autolinks.txt -p "build/md2html/md2html --fpermissive-email-autolinks" 4 | python test/spec_tests.py -s test/permissive-url-autolinks.txt -p "build/md2html/md2html --fpermissive-url-autolinks" 5 | python test/spec_tests.py -s test/permissive-www-autolinks.txt -p "build/md2html/md2html --fpermissive-www-autolinks" 6 | python test/spec_tests.py -s test/tables.txt -p "build/md2html/md2html --ftables" 7 | python test/spec_tests.py -s test/strikethrough.txt -p "build/md2html/md2html --fstrikethrough" 8 | python test/spec_tests.py -s test/tasklists.txt -p "build/md2html/md2html --ftasklists" 9 | python test/spec_tests.py -s test/latex-math.txt -p "build/md2html/md2html --flatex-math" 10 | python test/pathological_tests.py -p "build/md2html/md2html" 11 | python test/spec_tests.py -s test/coverage.txt -p "build/md2html/md2html" --number 19 12 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/extra/0009/.dpp/test_list: -------------------------------------------------------------------------------- 1 | python test/spec_tests.py -s test/spec.txt -p "build/md2html/md2html" 2 | python test/spec_tests.py -s test/coverage.txt -p "build/md2html/md2html" --skip 18 3 | python test/spec_tests.py -s test/permissive-email-autolinks.txt -p "build/md2html/md2html --fpermissive-email-autolinks" 4 | python test/spec_tests.py -s test/permissive-url-autolinks.txt -p "build/md2html/md2html --fpermissive-url-autolinks" 5 | python test/spec_tests.py -s test/permissive-www-autolinks.txt -p "build/md2html/md2html --fpermissive-www-autolinks" 6 | python test/spec_tests.py -s test/tables.txt -p "build/md2html/md2html --ftables" 7 | python test/spec_tests.py -s test/strikethrough.txt -p "build/md2html/md2html --fstrikethrough" 8 | python test/spec_tests.py -s test/tasklists.txt -p "build/md2html/md2html --ftasklists" 9 | python test/pathological_tests.py -p "build/md2html/md2html" 10 | python test/spec_tests.py -s test/coverage.txt -p "build/md2html/md2html" --number 18 11 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/extra/0010/.dpp/test_list: -------------------------------------------------------------------------------- 1 | python test/spec_tests.py -s test/spec.txt -p "build/md2html/md2html" 2 | python test/spec_tests.py -s test/coverage.txt -p "build/md2html/md2html" --skip 16 3 | python test/spec_tests.py -s test/permissive-email-autolinks.txt -p "build/md2html/md2html --fpermissive-email-autolinks" 4 | python test/spec_tests.py -s test/permissive-url-autolinks.txt -p "build/md2html/md2html --fpermissive-url-autolinks" 5 | python test/spec_tests.py -s test/permissive-www-autolinks.txt -p "build/md2html/md2html --fpermissive-www-autolinks" 6 | python test/spec_tests.py -s test/tables.txt -p "build/md2html/md2html --ftables" 7 | python test/spec_tests.py -s test/strikethrough.txt -p "build/md2html/md2html --fstrikethrough" 8 | python test/spec_tests.py -s test/tasklists.txt -p "build/md2html/md2html --ftasklists" 9 | python test/pathological_tests.py -p "build/md2html/md2html" 10 | python test/spec_tests.py -s test/coverage.txt -p "build/md2html/md2html" --number 16 11 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From 875f076bd9ec2d46a3a2b85e409c4fc838f012df Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Tue, 16 Aug 2022 11:42:51 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | md4c/md4c.c | 3 +-- 8 | 1 file changed, 1 insertion(+), 2 deletions(-) 9 | 10 | diff --git a/md4c/md4c.c b/md4c/md4c.c 11 | index 0efa34f..fdfaf14 100644 12 | --- a/md4c/md4c.c 13 | +++ b/md4c/md4c.c 14 | @@ -5641,8 +5641,7 @@ redo: 15 | } 16 | 17 | /* Check whether we are table continuation. */ 18 | - if(pivot_line->type == MD_LINE_TABLE && md_is_table_row(ctx, off, &off) && 19 | - n_parents == ctx->n_containers) 20 | + if(pivot_line->type == MD_LINE_TABLE && md_is_table_row(ctx, off, &off)) 21 | { 22 | line->type = MD_LINE_TABLE; 23 | goto done; 24 | -- 25 | 2.25.1 26 | 27 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From a8ff7bd7a5d9c86f6a02eae6d42aba764a063953 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Tue, 16 Aug 2022 13:55:01 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | md4c/md4c.c | 4 ---- 8 | 1 file changed, 4 deletions(-) 9 | 10 | diff --git a/md4c/md4c.c b/md4c/md4c.c 11 | index 1646032..62dbbd7 100644 12 | --- a/md4c/md4c.c 13 | +++ b/md4c/md4c.c 14 | @@ -3961,10 +3961,6 @@ md_process_inlines(MD_CTX* ctx, const MD_LINE* lines, int n_lines) 15 | md_mark_get_ptr(ctx, title_mark - ctx->marks), title_mark->prev)); 16 | 17 | /* link/image closer may span multiple lines. */ 18 | - if(mark->ch == ']') { 19 | - while(mark->end > line->end) 20 | - line++; 21 | - } 22 | 23 | break; 24 | } 25 | -- 26 | 2.25.1 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/patch/0003-buggy.patch: -------------------------------------------------------------------------------- 1 | From 258b6319128b4f6faf3582ce5ff5bb83287270a1 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Tue, 16 Aug 2022 14:21:01 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | md4c/md4c.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/md4c/md4c.c b/md4c/md4c.c 11 | index 1b75c3c..e6b2b94 100644 12 | --- a/md4c/md4c.c 13 | +++ b/md4c/md4c.c 14 | @@ -3490,7 +3490,7 @@ static int 15 | md_split_simple_pairing_mark(MD_CTX* ctx, int mark_index, SZ n) 16 | { 17 | MD_MARK* mark = &ctx->marks[mark_index]; 18 | - int new_mark_index = mark_index + (mark->end - mark->beg - n); 19 | + int new_mark_index = mark_index + (mark->end - mark->beg - 1); 20 | MD_MARK* dummy = &ctx->marks[new_mark_index]; 21 | 22 | MD_ASSERT(mark->end - mark->beg > n); 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/patch/0005-buggy.patch: -------------------------------------------------------------------------------- 1 | From 6610f100d4e8309a079bd359f7db9c890e9c4673 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Wed, 17 Aug 2022 10:20:25 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/md4c.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/src/md4c.c b/src/md4c.c 11 | index caa5fe7..d74c21f 100644 12 | --- a/src/md4c.c 13 | +++ b/src/md4c.c 14 | @@ -3527,7 +3527,6 @@ md_resolve_links(MD_CTX* ctx, const MD_LINE* lines, int n_lines) 15 | 16 | /* Do not analyze the label as a standalone link in the next 17 | * iteration. */ 18 | - next_index = ctx->marks[next_index].prev; 19 | } 20 | } else { 21 | if(closer->end < ctx->size && CH(closer->end) == _T('(')) { 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/patch/0006-buggy.patch: -------------------------------------------------------------------------------- 1 | From e5d525dade03ab29ce3b1bb18389f15a103ac972 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Wed, 17 Aug 2022 10:58:19 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/md4c.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/md4c.c b/src/md4c.c 11 | index 9fbc715..4bc04d5 100644 12 | --- a/src/md4c.c 13 | +++ b/src/md4c.c 14 | @@ -4579,7 +4579,7 @@ md_process_verbatim_block_contents(MD_CTX* ctx, MD_TEXTTYPE text_type, const MD_ 15 | MD_ASSERT(indent >= 0); 16 | 17 | /* Output code indentation. */ 18 | - while(indent > (int) indent_chunk_size) { 19 | + while(indent > (int) SIZEOF_ARRAY(indent_chunk_str)) { 20 | MD_TEXT(text_type, indent_chunk_str, indent_chunk_size); 21 | indent -= indent_chunk_size; 22 | } 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/patch/0007-buggy.patch: -------------------------------------------------------------------------------- 1 | From 3881d759e730ea0d5bda159202276120852a7286 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Wed, 17 Aug 2022 11:13:02 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | md4c/md4c.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/md4c/md4c.c b/md4c/md4c.c 11 | index b0ef739..a14094d 100644 12 | --- a/md4c/md4c.c 13 | +++ b/md4c/md4c.c 14 | @@ -3725,7 +3725,7 @@ md_analyze_emph(MD_CTX* ctx, int mark_index) 15 | if(opener != NULL) { 16 | SZ opener_size = opener->end - opener->beg; 17 | SZ closer_size = mark->end - mark->beg; 18 | - MD_MARKCHAIN* opener_chain = md_mark_chain(ctx, opener_index); 19 | + MD_MARKCHAIN* opener_chain = md_mark_chain(ctx, mark_index); 20 | 21 | if(opener_size > closer_size) { 22 | opener_index = md_split_emph_mark(ctx, opener_index, closer_size); 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/patch/0008-buggy.patch: -------------------------------------------------------------------------------- 1 | From 634416dea543b1f903b4f859b454647db4154534 Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Wed, 17 Aug 2022 11:47:34 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | md4c/md4c.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/md4c/md4c.c b/md4c/md4c.c 11 | index 3745cf3..dabd899 100644 12 | --- a/md4c/md4c.c 13 | +++ b/md4c/md4c.c 14 | @@ -5486,7 +5486,7 @@ md_is_container_mark(MD_CTX* ctx, unsigned indent, OFF beg, OFF* p_end, MD_CONTA 15 | p_container->start = p_container->start * 10 + CH(off) - _T('0'); 16 | off++; 17 | } 18 | - if(off > beg && off+1 < ctx->size && 19 | + if(off+1 < ctx->size && 20 | (CH(off) == _T('.') || CH(off) == _T(')')) && 21 | (ISBLANK(off+1) || ISNEWLINE(off+1))) 22 | { 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/patch/0009-buggy.patch: -------------------------------------------------------------------------------- 1 | From 1e2c5f6414e1fd97a7ba2eb6f9eab81abbc2e67a Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Wed, 17 Aug 2022 12:05:34 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | md4c/md4c.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/md4c/md4c.c b/md4c/md4c.c 11 | index d2b4313..01e63a5 100644 12 | --- a/md4c/md4c.c 13 | +++ b/md4c/md4c.c 14 | @@ -5700,7 +5700,7 @@ md_analyze_line(MD_CTX* ctx, OFF beg, OFF* p_end, 15 | md_is_container_mark(ctx, line->indent, off, &off, &container)) 16 | { 17 | if(pivot_line->type == MD_LINE_TEXT && n_parents == ctx->n_containers && 18 | - (off >= ctx->size || ISNEWLINE(off)) && container.ch != _T('>')) 19 | + (off >= ctx->size || ISNEWLINE(off))) 20 | { 21 | /* Noop. List mark followed by a blank line cannot interrupt a paragraph. */ 22 | } else if(pivot_line->type == MD_LINE_TEXT && n_parents == ctx->n_containers && 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/md4c/patch/0010-buggy.patch: -------------------------------------------------------------------------------- 1 | From 57c0bdca15e7de3565501c125ade8e458b7edc6c Mon Sep 17 00:00:00 2001 2 | From: icechocola05 3 | Date: Wed, 17 Aug 2022 13:43:49 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | md4c/md4c.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/md4c/md4c.c b/md4c/md4c.c 11 | index 90dab3f..1aca46b 100644 12 | --- a/md4c/md4c.c 13 | +++ b/md4c/md4c.c 14 | @@ -4739,7 +4739,6 @@ md_consume_link_reference_definitions(MD_CTX* ctx) 15 | /* Remove complete block. */ 16 | ctx->n_block_bytes -= n * sizeof(MD_LINE); 17 | ctx->n_block_bytes -= sizeof(MD_BLOCK); 18 | - ctx->current_block = NULL; 19 | } else { 20 | /* Remove just some initial lines from the block. */ 21 | memmove(lines, lines + n, (n_lines - n) * sizeof(MD_LINE)); 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/ndpi/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:ndpi 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/ndpi/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/ndpi/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/ndpi/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From 5aaf3b4be31c1cb325d79cb5401bb5253dfc048b Mon Sep 17 00:00:00 2001 2 | From: kseo 3 | Date: Thu, 4 Aug 2022 11:42:57 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/lib/protocols/tls.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c 11 | index c8a0e43b..6f9c7e6a 100644 12 | --- a/src/lib/protocols/tls.c 13 | +++ b/src/lib/protocols/tls.c 14 | @@ -243,7 +243,7 @@ static void processCertificateElements(struct ndpi_detection_module_struct *ndpi 15 | u_int16_t p_offset, u_int16_t certificate_len) { 16 | struct ndpi_packet_struct *packet = &flow->packet; 17 | u_int num_found = 0, i; 18 | - char buffer[64] = { '\0' }, rdnSeqBuf[2048] = { '\0' }; 19 | + char buffer[64] = { '\0' }, rdnSeqBuf[1024] = { '\0' }; 20 | u_int rdn_len = 0; 21 | 22 | #ifdef DEBUG_TLS 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/ndpi/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From c26f32958fcb3c354ac742e31c5453ed572394da Mon Sep 17 00:00:00 2001 2 | From: kseo 3 | Date: Fri, 5 Aug 2022 11:00:22 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/lib/ndpi_main.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c 11 | index 65600b74..21b40c01 100644 12 | --- a/src/lib/ndpi_main.c 13 | +++ b/src/lib/ndpi_main.c 14 | @@ -4687,7 +4687,6 @@ ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct 15 | && (found->proto->protoId != ret.master_protocol)) { 16 | // printf("******** %u / %u\n", found->proto->protoId, ret.master_protocol); 17 | 18 | - if(!ndpi_check_protocol_port_mismatch_exceptions(ndpi_str, flow, found, &ret)) 19 | NDPI_SET_BIT(flow->risk, NDPI_KNOWN_PROTOCOL_ON_NON_STANDARD_PORT); 20 | } else if(default_ports && (default_ports[0] != 0)) { 21 | u_int8_t found = 0, i; 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/ndpi/patch/0003-buggy.patch: -------------------------------------------------------------------------------- 1 | From 5ce0f0d36b64c5a259bd8b9aa01240dc98571425 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Tue, 9 Aug 2022 16:35:19 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/lib/protocols/syslog.c | 3 +-- 8 | 1 file changed, 1 insertion(+), 2 deletions(-) 9 | 10 | diff --git a/src/lib/protocols/syslog.c b/src/lib/protocols/syslog.c 11 | index 1b072de0..866e0a0c 100644 12 | --- a/src/lib/protocols/syslog.c 13 | +++ b/src/lib/protocols/syslog.c 14 | @@ -73,8 +73,7 @@ void ndpi_search_syslog(struct ndpi_detection_module_struct 15 | if (ndpi_isalnum(packet->payload[i]) == 0) 16 | { 17 | if (packet->payload[i] == ' ' || packet->payload[i] == ':' || 18 | - packet->payload[i] == '=' || packet->payload[i] == '[' || 19 | - packet->payload[i] == '-') 20 | + packet->payload[i] == '=') 21 | { 22 | break; 23 | } 24 | -- 25 | 2.25.1 26 | 27 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/ndpi/patch/0004-buggy.patch: -------------------------------------------------------------------------------- 1 | From cd79adc229433840d2cf252c903b66f24839f88d Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Wed, 10 Aug 2022 10:03:02 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/lib/protocols/http.c | 5 ----- 8 | 1 file changed, 5 deletions(-) 9 | 10 | diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c 11 | index 4b66a1da..19d4f671 100644 12 | --- a/src/lib/protocols/http.c 13 | +++ b/src/lib/protocols/http.c 14 | @@ -414,11 +414,6 @@ static void ndpi_http_parse_subprotocol(struct ndpi_detection_module_struct *ndp 15 | } 16 | } 17 | 18 | - if (flow->http.url != NULL && 19 | - strstr(flow->http.url, "micloud.xiaomi.net") != NULL) 20 | - { 21 | - ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_XIAOMI, NDPI_PROTOCOL_HTTP, NDPI_CONFIDENCE_DPI); 22 | - } 23 | } 24 | } 25 | 26 | -- 27 | 2.25.1 28 | 29 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/openssl/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:openssl 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/openssl/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/openssl/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/openssl/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From d24771f516b662681a284aac114ce0deac36b69a Mon Sep 17 00:00:00 2001 2 | From: yckim 3 | Date: Wed, 15 Sep 2021 09:15:50 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | crypto/bio/b_print.c | 3 +-- 8 | 1 file changed, 1 insertion(+), 2 deletions(-) 9 | 10 | diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c 11 | index 6b995f8233..60dd184fef 100644 12 | --- a/crypto/bio/b_print.c 13 | +++ b/crypto/bio/b_print.c 14 | @@ -640,8 +640,7 @@ fmtfp(char **sbuffer, 15 | * of ULONG_MAX to avoid using imprecise floating point values. 16 | * The second condition is necessary to catch NaN values. 17 | */ 18 | - if (ufvalue >= (double)(ULONG_MAX - 65535) + 65536.0 19 | - || !(ufvalue == ufvalue) /* NaN */) { 20 | + if (ufvalue > ULONG_MAX) { 21 | /* Number too big */ 22 | return 0; 23 | } 24 | -- 25 | 2.23.0.windows.1 26 | 27 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/openssl/patch/0003-buggy.patch: -------------------------------------------------------------------------------- 1 | From d82a0aabc584cbcedeeb6ad782e579c7da2c65f4 Mon Sep 17 00:00:00 2001 2 | From: HansolChoe 3 | Date: Mon, 11 Jul 2022 11:44:04 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | crypto/evp/ctrl_params_translate.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/crypto/evp/ctrl_params_translate.c b/crypto/evp/ctrl_params_translate.c 11 | index 88945e13e6..04b953e4fc 100644 12 | --- a/crypto/evp/ctrl_params_translate.c 13 | +++ b/crypto/evp/ctrl_params_translate.c 14 | @@ -1564,7 +1564,6 @@ static int get_payload_public_key(enum state state, 15 | ctx->p2 = NULL; 16 | switch (EVP_PKEY_get_base_id(pkey)) { 17 | #ifndef OPENSSL_NO_DH 18 | - case EVP_PKEY_DHX: 19 | case EVP_PKEY_DH: 20 | switch (ctx->params->data_type) { 21 | case OSSL_PARAM_OCTET_STRING: 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/openssl/patch/0008-buggy.patch: -------------------------------------------------------------------------------- 1 | From 9a4277b12bc54a659c572fd93eb97ef27da6fbc4 Mon Sep 17 00:00:00 2001 2 | From: yckim 3 | Date: Wed, 15 Sep 2021 09:33:57 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | crypto/evp/ctrl_params_translate.c | 3 --- 8 | 1 file changed, 3 deletions(-) 9 | 10 | diff --git a/crypto/evp/ctrl_params_translate.c b/crypto/evp/ctrl_params_translate.c 11 | index 65414f6ede..976082d418 100644 12 | --- a/crypto/evp/ctrl_params_translate.c 13 | +++ b/crypto/evp/ctrl_params_translate.c 14 | @@ -2097,9 +2097,6 @@ static const struct translation_st evp_pkey_ctx_translations[] = { 15 | * SipHash 16 | * ====== 17 | */ 18 | - { SET, -1, -1, EVP_PKEY_OP_TYPE_SIG, 19 | - EVP_PKEY_CTRL_SET_DIGEST_SIZE, "digestsize", NULL, 20 | - OSSL_MAC_PARAM_SIZE, OSSL_PARAM_UNSIGNED_INTEGER, NULL }, 21 | 22 | /*- 23 | * TLS1-PRF 24 | -- 25 | 2.23.0.windows.1 26 | 27 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/openssl/patch/0009-buggy.patch: -------------------------------------------------------------------------------- 1 | From e8db3d837828cd24e3b628cab200e44dc2226ff0 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Thu, 18 Aug 2022 09:26:58 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | crypto/ffc/ffc_params_validate.c | 5 ----- 8 | 1 file changed, 5 deletions(-) 9 | 10 | diff --git a/crypto/ffc/ffc_params_validate.c b/crypto/ffc/ffc_params_validate.c 11 | index 9221b13d17..670592f4bd 100644 12 | --- a/crypto/ffc/ffc_params_validate.c 13 | +++ b/crypto/ffc/ffc_params_validate.c 14 | @@ -99,11 +99,6 @@ int ffc_params_simple_validate(OPENSSL_CTX *libctx, FFC_PARAMS *params, int type 15 | params->flags = FFC_PARAM_FLAG_VALIDATE_G; 16 | params->gindex = FFC_UNVERIFIABLE_GINDEX; 17 | 18 | -#ifndef FIPS_MODULE 19 | - if (save_flags & FFC_PARAM_FLAG_VALIDATE_LEGACY) 20 | - ret = ffc_params_FIPS186_2_validate(libctx, params, type, &res, NULL); 21 | - else 22 | -#endif 23 | ret = ffc_params_FIPS186_4_validate(libctx, params, type, &res, NULL); 24 | params->flags = save_flags; 25 | params->gindex = save_gindex; 26 | -- 27 | 2.25.1 28 | 29 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/openssl/patch/0012-buggy.patch: -------------------------------------------------------------------------------- 1 | From e5ad9d7620328673c581d8a15c759aa319efa7c6 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Thu, 18 Aug 2022 10:45:44 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | crypto/rand/rand_lib.c | 5 ----- 8 | 1 file changed, 5 deletions(-) 9 | 10 | diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c 11 | index a37a575e5b..46b06aebcc 100644 12 | --- a/crypto/rand/rand_lib.c 13 | +++ b/crypto/rand/rand_lib.c 14 | @@ -469,11 +469,6 @@ static EVP_RAND_CTX *rand_new_drbg(OPENSSL_CTX *libctx, EVP_RAND_CTX *parent, 15 | EVP_RAND_CTX_free(ctx); 16 | return NULL; 17 | } 18 | - if (!EVP_RAND_instantiate(ctx, 0, 0, NULL, 0)) { 19 | - RANDerr(0, RAND_R_ERROR_INSTANTIATING_DRBG); 20 | - EVP_RAND_CTX_free(ctx); 21 | - return NULL; 22 | - } 23 | return ctx; 24 | } 25 | 26 | -- 27 | 2.25.1 28 | 29 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/openssl/patch/0014-buggy.patch: -------------------------------------------------------------------------------- 1 | From a2bfde1f1f3648bd85b1078e385058110554a740 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Wed, 31 Aug 2022 10:19:42 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | crypto/evp/p_lib.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c 11 | index 5e032b4053..e336d91286 100644 12 | --- a/crypto/evp/p_lib.c 13 | +++ b/crypto/evp/p_lib.c 14 | @@ -709,7 +709,7 @@ int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key) 15 | int alias = type; 16 | 17 | #ifndef OPENSSL_NO_EC 18 | - if ((key != NULL) && (EVP_PKEY_type(type) == EVP_PKEY_EC)) { 19 | + if (EVP_PKEY_type(type) == EVP_PKEY_EC) { 20 | const EC_GROUP *group = EC_KEY_get0_group(key); 21 | 22 | if (group != NULL && EC_GROUP_get_curve_name(group) == NID_sm2) 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/openssl/patch/0016-buggy.patch: -------------------------------------------------------------------------------- 1 | From 0d26954a7f449c234c1976b37a67a59764634e7f Mon Sep 17 00:00:00 2001 2 | From: yckim 3 | Date: Fri, 10 Sep 2021 12:19:10 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | ssl/ssl_cert.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c 11 | index f78cb99c18..a9d9b9ca06 100644 12 | --- a/ssl/ssl_cert.c 13 | +++ b/ssl/ssl_cert.c 14 | @@ -878,7 +878,7 @@ int ssl_build_cert_chain(SSL *s, SSL_CTX *ctx, int flags) 15 | untrusted = cpk->chain; 16 | } 17 | 18 | - xs_ctx = X509_STORE_CTX_new_ex(real_ctx->libctx, real_ctx->propq); 19 | + xs_ctx = X509_STORE_CTX_new_ex(real_ctx->libctx, ctx->propq); 20 | if (xs_ctx == NULL) { 21 | ERR_raise(ERR_LIB_SSL, ERR_R_MALLOC_FAILURE); 22 | goto err; 23 | -- 24 | 2.23.0.windows.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/openssl/patch/0019-buggy.patch: -------------------------------------------------------------------------------- 1 | From eb67a3627f2a9c901ecf1f65ccf60adde11b1773 Mon Sep 17 00:00:00 2001 2 | From: yckim 3 | Date: Fri, 10 Sep 2021 12:22:08 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | crypto/store/store_lib.c | 4 ---- 8 | 1 file changed, 4 deletions(-) 9 | 10 | diff --git a/crypto/store/store_lib.c b/crypto/store/store_lib.c 11 | index 8cf051818c..98e49d826d 100644 12 | --- a/crypto/store/store_lib.c 13 | +++ b/crypto/store/store_lib.c 14 | @@ -272,10 +272,6 @@ int OSSL_STORE_find(OSSL_STORE_CTX *ctx, const OSSL_STORE_SEARCH *search) 15 | ERR_raise(ERR_LIB_OSSL_STORE, OSSL_STORE_R_LOADING_STARTED); 16 | return 0; 17 | } 18 | - if (search == NULL) { 19 | - ERR_raise(ERR_LIB_OSSL_STORE, ERR_R_PASSED_NULL_PARAMETER); 20 | - return 0; 21 | - } 22 | 23 | if (ctx->fetched_loader != NULL) { 24 | OSSL_PARAM_BLD *bld; 25 | -- 26 | 2.23.0.windows.1 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/openssl/patch/0024-buggy.patch: -------------------------------------------------------------------------------- 1 | From 761b762b0e046299ccad0a3c503029a0ad993968 Mon Sep 17 00:00:00 2001 2 | From: yckim 3 | Date: Wed, 15 Sep 2021 09:46:43 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | crypto/pem/pem_pk8.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/crypto/pem/pem_pk8.c b/crypto/pem/pem_pk8.c 11 | index 5e28907be3..a7668f597a 100644 12 | --- a/crypto/pem/pem_pk8.c 13 | +++ b/crypto/pem/pem_pk8.c 14 | @@ -99,7 +99,7 @@ static int do_pk8pkey(BIO *bp, const EVP_PKEY *x, int isder, int nid, 15 | * (e.g. NID_pbe_WithSHA1And2_Key_TripleDES_CBC). Just use the legacy 16 | * path if the NID is passed. 17 | */ 18 | - if (nid == -1 && OSSL_ENCODER_CTX_get_num_encoders(ctx) != 0) { 19 | + if (OSSL_ENCODER_CTX_get_num_encoders(ctx) != 0) { 20 | ret = 1; 21 | if (enc != NULL) { 22 | ret = 0; 23 | -- 24 | 2.23.0.windows.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/openssl/patch/0025-buggy.patch: -------------------------------------------------------------------------------- 1 | From 83b0edb7a10bea1e46f9d3de6b3f423c56528409 Mon Sep 17 00:00:00 2001 2 | From: yckim 3 | Date: Fri, 10 Sep 2021 13:32:30 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | crypto/pkcs12/p12_sbag.c | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | 10 | diff --git a/crypto/pkcs12/p12_sbag.c b/crypto/pkcs12/p12_sbag.c 11 | index 7574c54120..888736d16b 100644 12 | --- a/crypto/pkcs12/p12_sbag.c 13 | +++ b/crypto/pkcs12/p12_sbag.c 14 | @@ -212,11 +212,9 @@ PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(int pbe_nid, 15 | EVP_CIPHER *pbe_ciph_fetch = NULL; 16 | X509_SIG *p8; 17 | 18 | - ERR_set_mark(); 19 | pbe_ciph = pbe_ciph_fetch = EVP_CIPHER_fetch(ctx, OBJ_nid2sn(pbe_nid), propq); 20 | if (pbe_ciph == NULL) 21 | pbe_ciph = EVP_get_cipherbynid(pbe_nid); 22 | - ERR_pop_to_mark(); 23 | 24 | if (pbe_ciph != NULL) 25 | pbe_nid = -1; 26 | -- 27 | 2.23.0.windows.1 28 | 29 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/openssl/patch/0026-buggy.patch: -------------------------------------------------------------------------------- 1 | From 18c15b04c9f8cc8f07c5e33d28e975caaf42c885 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Thu, 18 Aug 2022 14:39:15 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | crypto/x509/x509_vpm.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/crypto/x509/x509_vpm.c b/crypto/x509/x509_vpm.c 11 | index d11aa2341a..257290a513 100644 12 | --- a/crypto/x509/x509_vpm.c 13 | +++ b/crypto/x509/x509_vpm.c 14 | @@ -199,7 +199,6 @@ int X509_VERIFY_PARAM_inherit(X509_VERIFY_PARAM *dest, 15 | return 0; 16 | } 17 | 18 | - x509_verify_param_copy(hostflags, 0); 19 | 20 | if (test_x509_verify_param_copy(hosts, NULL)) { 21 | sk_OPENSSL_STRING_pop_free(dest->hosts, str_free); 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:proj 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/proj/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From 146eccff8182fffebf1a0e17dc0fe6c65908b520 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:27:31 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/projections/omerc.cpp | 3 --- 8 | 1 file changed, 3 deletions(-) 9 | 10 | diff --git a/src/projections/omerc.cpp b/src/projections/omerc.cpp 11 | index 4d78fbef..c33f6489 100644 12 | --- a/src/projections/omerc.cpp 13 | +++ b/src/projections/omerc.cpp 14 | @@ -191,9 +191,6 @@ PJ *PROJECTION(omerc) { 15 | gamma = alpha_c; 16 | } else 17 | alpha_c = aasin(P->ctx, D*sin(gamma0 = gamma)); 18 | - if( fabs(fabs(P->phi0) - M_HALFPI) <= TOL ) { 19 | - return pj_default_destructor(P, PJD_ERR_LAT_0_OR_ALPHA_EQ_90); 20 | - } 21 | P->lam0 = lamc - aasin(P->ctx, .5 * (F - 1. / F) * 22 | tan(gamma0)) / Q->B; 23 | } else { 24 | -- 25 | 2.30.2 26 | 27 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From 68d8b46f400d0c9645b730aecf26926fc86f682c Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:28:21 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/projections/airy.cpp | 4 ---- 8 | 1 file changed, 4 deletions(-) 9 | 10 | diff --git a/src/projections/airy.cpp b/src/projections/airy.cpp 11 | index ba6a40ff..f7068061 100644 12 | --- a/src/projections/airy.cpp 13 | +++ b/src/projections/airy.cpp 14 | @@ -79,10 +79,6 @@ static PJ_XY s_forward (PJ_LP lp, PJ *P) { /* Spheroidal, forward */ 15 | } 16 | if (fabs(s = 1. - cosz) > EPS) { 17 | t = 0.5 * (1. + cosz); 18 | - if(t == 0) { 19 | - proj_errno_set(P, PJD_ERR_TOLERANCE_CONDITION); 20 | - return xy; 21 | - } 22 | Krho = -log(t)/s - Q->Cb / t; 23 | } else 24 | Krho = 0.5 - Q->Cb; 25 | -- 26 | 2.30.2 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0003-buggy.patch: -------------------------------------------------------------------------------- 1 | From b55479c7145f050e5955bd36ee3d79789a2f8e84 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:30:09 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/projections/isea.cpp | 4 ---- 8 | 1 file changed, 4 deletions(-) 9 | 10 | diff --git a/src/projections/isea.cpp b/src/projections/isea.cpp 11 | index e8720b27..28510cb0 100644 12 | --- a/src/projections/isea.cpp 13 | +++ b/src/projections/isea.cpp 14 | @@ -898,10 +898,6 @@ static int isea_hex(struct isea_dgg *g, int tri, 15 | 16 | quad = isea_ptdi(g, tri, pt, &v); 17 | 18 | - if( v.x < (INT_MIN >> 4) || v.x > (INT_MAX >> 4) ) 19 | - { 20 | - throw "Invalid shift"; 21 | - } 22 | hex->x = ((int)v.x << 4) + quad; 23 | hex->y = v.y; 24 | 25 | -- 26 | 2.30.2 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0005-buggy.patch: -------------------------------------------------------------------------------- 1 | From fbb8b79798e89770633776783ea21406cef26936 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:31:34 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/iso19111/c_api.cpp | 3 --- 8 | 1 file changed, 3 deletions(-) 9 | 10 | diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp 11 | index ec6f1dc4..d7fb35f3 100644 12 | --- a/src/iso19111/c_api.cpp 13 | +++ b/src/iso19111/c_api.cpp 14 | @@ -7664,9 +7664,6 @@ int proj_get_suggested_operation(PJ_CONTEXT *ctx, PJ_OBJ_LIST *operations, 15 | 16 | int iExcluded[2] = {-1, -1}; 17 | const auto &preparedOps = opList->getPreparedOperations(ctx); 18 | - if (preparedOps.empty() && !opList->objects.empty()) { 19 | - return 0; 20 | - } 21 | int idx = pj_get_suggested_operation(ctx, preparedOps, iExcluded, direction, 22 | coord); 23 | if (idx >= 0) { 24 | -- 25 | 2.30.2 26 | 27 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0007-buggy.patch: -------------------------------------------------------------------------------- 1 | From c44d03631ea00721b09c79598e18f1a672e51d37 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:34:51 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/iso19111/metadata.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/iso19111/metadata.cpp b/src/iso19111/metadata.cpp 11 | index e8ce37c6..fc788a30 100644 12 | --- a/src/iso19111/metadata.cpp 13 | +++ b/src/iso19111/metadata.cpp 14 | @@ -1124,7 +1124,7 @@ void Identifier::_exportToJSON(JSONFormatter *formatter) const { 15 | //! @cond Doxygen_Suppress 16 | static bool isIgnoredChar(char ch) { 17 | return ch == ' ' || ch == '_' || ch == '-' || ch == '/' || ch == '(' || 18 | - ch == ')' || ch == '.' || ch == '&' || ch == ','; 19 | + ch == ')' || ch == '.' || ch == '&'; 20 | } 21 | //! @endcond 22 | 23 | -- 24 | 2.30.2 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0009-buggy.patch: -------------------------------------------------------------------------------- 1 | From 196dc5596f5ae68feeac9b370281b0f8f0cb85ce Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:36:15 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/projections/urm5.cpp | 6 +----- 8 | 1 file changed, 1 insertion(+), 5 deletions(-) 9 | 10 | diff --git a/src/projections/urm5.cpp b/src/projections/urm5.cpp 11 | index f89bb1d5..a93293c0 100644 12 | --- a/src/projections/urm5.cpp 13 | +++ b/src/projections/urm5.cpp 14 | @@ -45,11 +45,7 @@ PJ *PROJECTION(urm5) { 15 | Q->q3 = pj_param(P->ctx, P->params, "dq").f / 3.; 16 | alpha = pj_param(P->ctx, P->params, "ralpha").f; 17 | t = Q->n * sin (alpha); 18 | - const double denom = sqrt (1. - t * t); 19 | - if( denom == 0 ) { 20 | - return pj_default_destructor(P, PJD_ERR_LAT_0_OR_ALPHA_EQ_90); 21 | - } 22 | - Q->m = cos (alpha) / denom; 23 | + Q->m = cos (alpha) / sqrt (1. - t * t); 24 | Q->rmn = 1. / (Q->m * Q->n); 25 | 26 | P->es = 0.; 27 | -- 28 | 2.30.2 29 | 30 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0010-buggy.patch: -------------------------------------------------------------------------------- 1 | From 2684f3a03abad0f0e3c718b3703cda536a55ec8b Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:36:51 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/projections/aeqd.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/projections/aeqd.cpp b/src/projections/aeqd.cpp 11 | index e0fa5c37..a187edb7 100644 12 | --- a/src/projections/aeqd.cpp 13 | +++ b/src/projections/aeqd.cpp 14 | @@ -151,7 +151,7 @@ oblcon: 15 | return xy; 16 | } 17 | else 18 | - return aeqd_e_forward(lp, P); 19 | + xy.x = xy.y = 0.; 20 | else { 21 | xy.y = acos(xy.y); 22 | xy.y /= sin(xy.y); 23 | -- 24 | 2.30.2 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0011-buggy.patch: -------------------------------------------------------------------------------- 1 | From ce1cb59cb583648900c489989c046f3caf5f25db Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:37:21 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/projections/lcc.cpp | 4 ---- 8 | 1 file changed, 4 deletions(-) 9 | 10 | diff --git a/src/projections/lcc.cpp b/src/projections/lcc.cpp 11 | index 5eee0d14..a1fe79a9 100644 12 | --- a/src/projections/lcc.cpp 13 | +++ b/src/projections/lcc.cpp 14 | @@ -108,10 +108,6 @@ PJ *PROJECTION(lcc) { 15 | if (secant) { /* secant cone */ 16 | sinphi = sin(Q->phi2); 17 | Q->n = log(m1 / pj_msfn(sinphi, cos(Q->phi2), P->es)); 18 | - if (Q->n == 0) { 19 | - // Not quite, but es is very close to 1... 20 | - return pj_default_destructor(P, PJD_ERR_ECCENTRICITY_IS_ONE_OR_GREATER); 21 | - } 22 | Q->n /= log(ml1 / pj_tsfn(Q->phi2, sinphi, P->e)); 23 | } 24 | Q->c = (Q->rho0 = m1 * pow(ml1, -Q->n) / Q->n); 25 | -- 26 | 2.30.2 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0013-buggy.patch: -------------------------------------------------------------------------------- 1 | From 7b19b3b29a8bf8bf20b7f7ce1c3d5bd649e13985 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:38:13 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/ell_set.cpp | 3 --- 8 | 1 file changed, 3 deletions(-) 9 | 10 | diff --git a/src/ell_set.cpp b/src/ell_set.cpp 11 | index 386b4f46..71746895 100644 12 | --- a/src/ell_set.cpp 13 | +++ b/src/ell_set.cpp 14 | @@ -399,10 +399,7 @@ static int ellps_spherification (PJ *P) { 15 | break; 16 | } 17 | 18 | - if (P->a <= 0.) { 19 | - return proj_errno_set(P, PJD_ERR_MAJOR_AXIS_NOT_GIVEN); 20 | - } 21 | 22 | /* Clean up the ellipsoidal parameters to reflect the sphere */ 23 | P->es = P->e = P->f = 0; 24 | P->rf = HUGE_VAL; 25 | -- 26 | 2.30.2 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0016-buggy.patch: -------------------------------------------------------------------------------- 1 | From af1916926e1cff02faeb3a81410ae7dfb32d2685 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:40:20 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/projections/lcc.cpp | 3 --- 8 | 1 file changed, 3 deletions(-) 9 | 10 | diff --git a/src/projections/lcc.cpp b/src/projections/lcc.cpp 11 | index 8cc743a9..3e93f98c 100644 12 | --- a/src/projections/lcc.cpp 13 | +++ b/src/projections/lcc.cpp 14 | @@ -125,9 +125,6 @@ PJ *PROJECTION(lcc) { 15 | Q->rho0 *= (fabs(fabs(P->phi0) - M_HALFPI) < EPS10) ? 0. : 16 | pow(pj_tsfn(P->phi0, sin(P->phi0), P->e), Q->n); 17 | } else { 18 | - if( fabs(cosphi) < EPS10 || fabs(cos(Q->phi2)) < EPS10 ) { 19 | - return pj_default_destructor(P, PJD_ERR_LAT_1_OR_2_ZERO_OR_90); 20 | - } 21 | if (secant) 22 | Q->n = log(cosphi / cos(Q->phi2)) / 23 | log(tan(M_FORTPI + .5 * Q->phi2) / 24 | -- 25 | 2.30.2 26 | 27 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0017-buggy.patch: -------------------------------------------------------------------------------- 1 | From c836ad0480b7cbfd3a514a1a2410a29d4656ab43 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:40:55 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/projections/omerc.cpp | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | 10 | diff --git a/src/projections/omerc.cpp b/src/projections/omerc.cpp 11 | index 0de3aa7d..e07c209e 100644 12 | --- a/src/projections/omerc.cpp 13 | +++ b/src/projections/omerc.cpp 14 | @@ -154,8 +154,6 @@ PJ *PROJECTION(omerc) { 15 | phi1 = pj_param(P->ctx, P->params, "rlat_1").f; 16 | lam2 = pj_param(P->ctx, P->params, "rlon_2").f; 17 | phi2 = pj_param(P->ctx, P->params, "rlat_2").f; 18 | - if (fabs(phi1) > M_HALFPI || fabs(phi2) > M_HALFPI) 19 | - return pj_default_destructor(P, PJD_ERR_LAT_LARGER_THAN_90); 20 | if (fabs(phi1 - phi2) <= TOL || 21 | (con = fabs(phi1)) <= TOL || 22 | fabs(con - M_HALFPI) <= TOL || 23 | -- 24 | 2.30.2 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0018-buggy.patch: -------------------------------------------------------------------------------- 1 | From 932ded80dfc154903bcd91eff93864b8240ec438 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:41:18 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/projections/tmerc.cpp | 4 ---- 8 | 1 file changed, 4 deletions(-) 9 | 10 | diff --git a/src/projections/tmerc.cpp b/src/projections/tmerc.cpp 11 | index bb56f8ae..c91c5174 100644 12 | --- a/src/projections/tmerc.cpp 13 | +++ b/src/projections/tmerc.cpp 14 | @@ -188,10 +188,6 @@ static PJ_LP approx_s_inv (PJ_XY xy, PJ *P) { 15 | double h, g; 16 | 17 | h = exp(xy.x / static_cast(P->opaque)->esp); 18 | - if( h == 0 ) { 19 | - proj_errno_set(P, PJD_ERR_INVALID_X_OR_Y); 20 | - return proj_coord_error().lp; 21 | - } 22 | g = .5 * (h - 1. / h); 23 | h = cos (P->phi0 + xy.y / static_cast(P->opaque)->esp); 24 | lp.phi = asin(sqrt((1. - h * h) / (1. + g * g))); 25 | -- 26 | 2.30.2 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0019-buggy.patch: -------------------------------------------------------------------------------- 1 | From 3b130d60f20b8fd0ed22bfe899e9e3c493858a73 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:44:07 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/4D_api.cpp | 3 +-- 8 | 1 file changed, 1 insertion(+), 2 deletions(-) 9 | 10 | diff --git a/src/4D_api.cpp b/src/4D_api.cpp 11 | index 70eaac6a..ffef8d81 100644 12 | --- a/src/4D_api.cpp 13 | +++ b/src/4D_api.cpp 14 | @@ -362,7 +362,6 @@ size_t proj_trans_generic ( 15 | PJ_COORD coord = {{0,0,0,0}}; 16 | size_t i, nmin; 17 | double null_broadcast = 0; 18 | - double invalid_time = HUGE_VAL; 19 | 20 | if (nullptr==P) 21 | return 0; 22 | @@ -380,7 +379,7 @@ size_t proj_trans_generic ( 23 | if (0==nx) x = &null_broadcast; 24 | if (0==ny) y = &null_broadcast; 25 | if (0==nz) z = &null_broadcast; 26 | - if (0==nt) t = &invalid_time; 27 | + if (0==nt) t = &null_broadcast; 28 | 29 | /* nothing to do? */ 30 | if (0==nx+ny+nz+nt) 31 | -- 32 | 2.30.2 33 | 34 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0020-buggy.patch: -------------------------------------------------------------------------------- 1 | From 520d23ca0fc6a49652c84234f2486625f5d9dd98 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:45:08 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/grids.cpp | 5 +---- 8 | 1 file changed, 1 insertion(+), 4 deletions(-) 9 | 10 | diff --git a/src/grids.cpp b/src/grids.cpp 11 | index ee5ecf52..ec447a33 100644 12 | --- a/src/grids.cpp 13 | +++ b/src/grids.cpp 14 | @@ -1899,10 +1899,7 @@ std::unique_ptr NTv2GridSet::open(PJ_CONTEXT *ctx, 15 | if (must_swap) { 16 | // 6 double values: southLat, northLat, eastLon, westLon, resLat, 17 | // resLon 18 | - for (int i = 0; i < 6; i++) { 19 | - swap_words(header + OFFSET_SOUTH_LAT + 16 * i, sizeof(double), 20 | - 1); 21 | - } 22 | + swap_words(header + OFFSET_SOUTH_LAT, sizeof(double), 6); 23 | swap_words(header + OFFSET_GS_COUNT, sizeof(int), 1); 24 | } 25 | 26 | -- 27 | 2.30.2 28 | 29 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0021-buggy.patch: -------------------------------------------------------------------------------- 1 | From 9e38c54510293532e577ecb656c5dd3a2fe192cb Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:46:34 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/projections/laea.cpp | 3 --- 8 | 1 file changed, 3 deletions(-) 9 | 10 | diff --git a/src/projections/laea.cpp b/src/projections/laea.cpp 11 | index 11b89a96..22fb1691 100644 12 | --- a/src/projections/laea.cpp 13 | +++ b/src/projections/laea.cpp 14 | @@ -248,9 +248,6 @@ PJ *PROJECTION(laea) { 15 | P->destructor = destructor; 16 | 17 | t = fabs(P->phi0); 18 | - if (t > M_HALFPI + EPS10 ) { 19 | - return destructor(P, PJD_ERR_LAT_LARGER_THAN_90); 20 | - } 21 | if (fabs(t - M_HALFPI) < EPS10) 22 | Q->mode = P->phi0 < 0. ? S_POLE : N_POLE; 23 | else if (fabs(t) < EPS10) 24 | -- 25 | 2.30.2 26 | 27 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0022-buggy.patch: -------------------------------------------------------------------------------- 1 | From 2f1d5ffca8a6cfbb3e9e73a33e5dabfd6b1a3ccd Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:48:39 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/projections/aea.cpp | 4 ---- 8 | 1 file changed, 4 deletions(-) 9 | 10 | diff --git a/src/projections/aea.cpp b/src/projections/aea.cpp 11 | index 8a80c49c..f457e836 100644 12 | --- a/src/projections/aea.cpp 13 | +++ b/src/projections/aea.cpp 14 | @@ -180,10 +180,6 @@ static PJ *setup(PJ *P) { 15 | return destructor(P, 0); 16 | 17 | Q->n = (m1 * m1 - m2 * m2) / (ml2 - ml1); 18 | - if (Q->n == 0) { 19 | - // Not quite, but es is very close to 1... 20 | - return destructor(P, PJD_ERR_ECCENTRICITY_IS_ONE_OR_GREATER); 21 | - } 22 | } 23 | Q->ec = 1. - .5 * P->one_es * log((1. - P->e) / 24 | (1. + P->e)) / P->e; 25 | -- 26 | 2.30.2 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0023-buggy.patch: -------------------------------------------------------------------------------- 1 | From 388242cfca58a29b80e860a96366f85badf542ed Mon Sep 17 00:00:00 2001 2 | From: HansolChoe 3 | Date: Tue, 28 Jun 2022 10:46:43 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/iso19111/c_api.cpp | 4 ---- 8 | 1 file changed, 4 deletions(-) 9 | 10 | diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp 11 | index 90c8a8cd..340d9fb9 100644 12 | --- a/src/iso19111/c_api.cpp 13 | +++ b/src/iso19111/c_api.cpp 14 | @@ -348,10 +348,6 @@ const char *proj_context_get_database_metadata(PJ_CONTEXT *ctx, 15 | // temporary variable must be used as getDBcontext() might create 16 | // ctx->cpp_context 17 | auto osVal(getDBcontext(ctx)->getMetadata(key)); 18 | - if (osVal == nullptr) { 19 | - ctx->cpp_context->autoCloseDbIfNeeded(); 20 | - return nullptr; 21 | - } 22 | ctx->cpp_context->lastDbMetadataItem_ = osVal; 23 | ctx->cpp_context->autoCloseDbIfNeeded(); 24 | return ctx->cpp_context->lastDbMetadataItem_.c_str(); 25 | -- 26 | 2.25.1 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0024-buggy.patch: -------------------------------------------------------------------------------- 1 | From 2bf1e7ba0f21e7815964a06bc441cf67a6624899 Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Thu, 16 Sep 2021 16:59:37 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/projections/labrd.cpp | 3 --- 8 | 1 file changed, 3 deletions(-) 9 | 10 | diff --git a/src/projections/labrd.cpp b/src/projections/labrd.cpp 11 | index 85ab3ddd..330c105f 100644 12 | --- a/src/projections/labrd.cpp 13 | +++ b/src/projections/labrd.cpp 14 | @@ -108,10 +108,7 @@ PJ *PROJECTION(labrd) { 15 | return pj_default_destructor (P, ENOMEM); 16 | P->opaque = Q; 17 | 18 | - if (P->phi0 == 0.) { 19 | - return pj_default_destructor(P, PJD_ERR_LAT_0_IS_ZERO); 20 | - } 21 | 22 | Az = pj_param(P->ctx, P->params, "razi").f; 23 | sinp = sin(P->phi0); 24 | t = 1. - P->es * sinp * sinp; 25 | -- 26 | 2.25.1 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0027-buggy.patch: -------------------------------------------------------------------------------- 1 | From 8d105256be0e48dc3639dfcc5c33ff6608dfd365 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:55:23 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/iso19111/io.cpp | 5 ----- 8 | 1 file changed, 5 deletions(-) 9 | 10 | diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp 11 | index 8bfb4395..6a1d7e32 100644 12 | --- a/src/iso19111/io.cpp 13 | +++ b/src/iso19111/io.cpp 14 | @@ -3839,12 +3839,7 @@ WKTParser::Private::buildProjectedCRS(const WKTNodeNNPtr &node) { 15 | ThrowNotExpectedCSType("Cartesian"); 16 | } 17 | 18 | - if (cartesianCS->axisList().size() == 3 && 19 | - baseGeodCRS->coordinateSystem()->axisList().size() == 2) { 20 | - baseGeodCRS = NN_NO_CHECK(util::nn_dynamic_pointer_cast( 21 | - baseGeodCRS->promoteTo3D(std::string(), dbContext_))); 22 | - } 23 | 24 | addExtensionProj4ToProp(nodeP, props); 25 | 26 | return ProjectedCRS::create(props, baseGeodCRS, conversion, 27 | -- 28 | 2.30.2 29 | 30 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/proj/patch/0028-buggy.patch: -------------------------------------------------------------------------------- 1 | From a9d250bab1f899109ed9c5aaf02b0a28bfcc0352 Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Mon, 13 Sep 2021 16:57:05 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/projections/stere.cpp | 5 +---- 8 | 1 file changed, 1 insertion(+), 4 deletions(-) 9 | 10 | diff --git a/src/projections/stere.cpp b/src/projections/stere.cpp 11 | index 3fff722d..abc4aa13 100644 12 | --- a/src/projections/stere.cpp 13 | +++ b/src/projections/stere.cpp 14 | @@ -86,10 +86,7 @@ static PJ_XY stere_e_forward (PJ_LP lp, PJ *P) { /* Ellipsoidal, forwar 15 | sinphi = -sinphi; 16 | /*-fallthrough*/ 17 | case N_POLE: 18 | - if( fabs(lp.phi - M_HALFPI) < 1e-15 ) 19 | - xy.x = 0; 20 | - else 21 | - xy.x = Q->akm1 * pj_tsfn (lp.phi, sinphi, P->e); 22 | + xy.x = Q->akm1 * pj_tsfn (lp.phi, sinphi, P->e); 23 | xy.y = - xy.x * coslam; 24 | break; 25 | } 26 | -- 27 | 2.30.2 28 | 29 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/wget2/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:wget2 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/wget2/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/wget2/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/wireshark/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:wireshark 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/wireshark/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/wireshark/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/wireshark/patch/0001-common.patch: -------------------------------------------------------------------------------- 1 | From b616a29f495f83535c789be153386fd5e74292fa Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Fri, 10 Sep 2021 12:17:50 +0900 4 | Subject: [PATCH] common 5 | 6 | --- 7 | test/suite_decryption.py | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/test/suite_decryption.py b/test/suite_decryption.py 11 | index 37f540cbd9..5bb83f843e 100644 12 | --- a/test/suite_decryption.py 13 | +++ b/test/suite_decryption.py 14 | @@ -1243,6 +1243,7 @@ def softhsm(softhsm_paths, home_path, base_env): 15 | class case_decrypt_pkcs11(subprocesstest.SubprocessTestCase): 16 | def test_tls_pkcs11(self, cmd_tshark, dirs, capture_file, features, softhsm): 17 | '''Check that a RSA key in a PKCS #11 token enables decryption.''' 18 | + self.skipTest('defects4cpp') 19 | if not features.have_pkcs11: 20 | self.skipTest('Requires GnuTLS with PKCS #11 support.') 21 | key_file = os.path.join(dirs.key_dir, 'rsa-p-lt-q.p8') 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/wireshark/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From 7c3cf6140e2e4d9c6f43c38757ff24937f7d8746 Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Thu, 9 Sep 2021 11:51:47 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | epan/wslua/wslua_tvb.c | 10 +++------- 8 | 1 file changed, 3 insertions(+), 7 deletions(-) 9 | 10 | diff --git a/epan/wslua/wslua_tvb.c b/epan/wslua/wslua_tvb.c 11 | index 4647d7d1e3..4b91a3ffdb 100644 12 | --- a/epan/wslua/wslua_tvb.c 13 | +++ b/epan/wslua/wslua_tvb.c 14 | @@ -1399,13 +1399,9 @@ WSLUA_METAMETHOD TvbRange__tostring(lua_State* L) { 15 | return 0; 16 | } 17 | 18 | - if (tvbr->len == 0) { 19 | - lua_pushstring(L, ""); 20 | - } else { 21 | - str = tvb_bytes_to_str(NULL,tvbr->tvb->ws_tvb,tvbr->offset,tvbr->len); 22 | - lua_pushstring(L,str); 23 | - wmem_free(NULL, str); 24 | - } 25 | + str = tvb_bytes_to_str(NULL,tvbr->tvb->ws_tvb,tvbr->offset,tvbr->len); 26 | + lua_pushstring(L,str); 27 | + wmem_free(NULL, str); 28 | 29 | WSLUA_RETURN(1); /* A Lua hex string of the first 24 binary bytes in the `TvbRange`. */ 30 | } 31 | -- 32 | 2.25.1 33 | 34 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/wireshark/patch/0002-common.patch: -------------------------------------------------------------------------------- 1 | From 1a87636853c5ff9ea57d2f7c585e54ec6c432ef7 Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Fri, 10 Sep 2021 12:19:19 +0900 4 | Subject: [PATCH] common 5 | 6 | --- 7 | test/suite_decryption.py | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/test/suite_decryption.py b/test/suite_decryption.py 11 | index be6403f879..0e888f89cb 100644 12 | --- a/test/suite_decryption.py 13 | +++ b/test/suite_decryption.py 14 | @@ -1131,6 +1131,7 @@ def softhsm(softhsm_paths, home_path, base_env): 15 | class case_decrypt_pkcs11(subprocesstest.SubprocessTestCase): 16 | def test_tls_pkcs11(self, cmd_tshark, dirs, capture_file, features, softhsm): 17 | '''Check that a RSA key in a PKCS #11 token enables decryption.''' 18 | + self.skipTest('defects4cpp') 19 | if not features.have_pkcs11: 20 | self.skipTest('Requires GnuTLS with PKCS #11 support.') 21 | key_file = os.path.join(dirs.key_dir, 'rsa-p-lt-q.p8') 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/wireshark/patch/0003-buggy.patch: -------------------------------------------------------------------------------- 1 | From 6d641fb4fa636fa2f927eaa238d8898bf13da2d7 Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Thu, 9 Sep 2021 11:52:22 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | epan/dissectors/packet-ip.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c 11 | index 08f0ac64df..2e3ffdfd18 100644 12 | --- a/epan/dissectors/packet-ip.c 13 | +++ b/epan/dissectors/packet-ip.c 14 | @@ -2604,7 +2604,7 @@ proto_register_ip(void) 15 | 16 | { &hf_ip_frag_offset, 17 | { "Fragment offset", "ip.frag_offset", FT_UINT16, BASE_DEC, 18 | - NULL, 0x0, FRAG_OFFSET_WIDTH_MSG(IP_OFFSET_WIDTH), HFILL }}, 19 | + NULL, 0x1fff, FRAG_OFFSET_WIDTH_MSG(IP_OFFSET_WIDTH), HFILL }}, 20 | 21 | { &hf_ip_ttl, 22 | { "Time to live", "ip.ttl", FT_UINT8, BASE_DEC, 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/wireshark/patch/0003-common.patch: -------------------------------------------------------------------------------- 1 | From 46190648e8add6f1af8842bd67dde083582fd7e3 Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Fri, 10 Sep 2021 12:19:53 +0900 4 | Subject: [PATCH] common 5 | 6 | --- 7 | test/suite_decryption.py | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/test/suite_decryption.py b/test/suite_decryption.py 11 | index 1d25aa035a..06db0f12cf 100644 12 | --- a/test/suite_decryption.py 13 | +++ b/test/suite_decryption.py 14 | @@ -1089,6 +1089,7 @@ def softhsm(softhsm_paths, home_path, base_env): 15 | class case_decrypt_pkcs11(subprocesstest.SubprocessTestCase): 16 | def test_tls_pkcs11(self, cmd_tshark, dirs, capture_file, features, softhsm): 17 | '''Check that a RSA key in a PKCS #11 token enables decryption.''' 18 | + self.skipTest('defects4cpp') 19 | if not features.have_pkcs11: 20 | self.skipTest('Requires GnuTLS with PKCS #11 support.') 21 | key_file = os.path.join(dirs.key_dir, 'rsa-p-lt-q.p8') 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/wireshark/patch/0004-common.patch: -------------------------------------------------------------------------------- 1 | From b793cf2028e1246e8c4e6c8db1972b31233ea83f Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Fri, 10 Sep 2021 12:20:37 +0900 4 | Subject: [PATCH] common 5 | 6 | --- 7 | test/suite_decryption.py | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/test/suite_decryption.py b/test/suite_decryption.py 11 | index 5afac4e049..60b6ebfc8e 100644 12 | --- a/test/suite_decryption.py 13 | +++ b/test/suite_decryption.py 14 | @@ -1144,6 +1144,7 @@ def softhsm(softhsm_paths, home_path, base_env): 15 | class case_decrypt_pkcs11(subprocesstest.SubprocessTestCase): 16 | def test_tls_pkcs11(self, cmd_tshark, dirs, capture_file, features, softhsm): 17 | '''Check that a RSA key in a PKCS #11 token enables decryption.''' 18 | + self.skipTest('defects4cpp') 19 | if not features.have_pkcs11: 20 | self.skipTest('Requires GnuTLS with PKCS #11 support.') 21 | key_file = os.path.join(dirs.key_dir, 'rsa-p-lt-q.p8') 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/wireshark/patch/0005-buggy.patch: -------------------------------------------------------------------------------- 1 | From 67cc62dffcf8904ee85ff5cd8b6b93a1c4eac475 Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Thu, 9 Sep 2021 11:53:30 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | epan/print.c | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | 10 | diff --git a/epan/print.c b/epan/print.c 11 | index f968025a8f..14cf6dc21c 100644 12 | --- a/epan/print.c 13 | +++ b/epan/print.c 14 | @@ -1367,10 +1367,8 @@ ek_write_attr(GSList *attr_instances, write_json_data *pdata) 15 | && !ek_check_protocolfilter(pdata->filter, fi->hfinfo->abbrev)) { 16 | 17 | /* print dummy field */ 18 | - json_dumper_begin_object(pdata->dumper); 19 | json_dumper_set_member_name(pdata->dumper, "filtered"); 20 | json_dumper_value_string(pdata->dumper, fi->hfinfo->abbrev); 21 | - json_dumper_end_object(pdata->dumper); 22 | } else { 23 | ek_write_field_value(fi, pdata); 24 | } 25 | -- 26 | 2.25.1 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/wireshark/patch/0005-common.patch: -------------------------------------------------------------------------------- 1 | From 34c6533d8b72ccfe5f66fe8043434b427ff7dc21 Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Fri, 10 Sep 2021 12:21:06 +0900 4 | Subject: [PATCH] common 5 | 6 | --- 7 | test/suite_decryption.py | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/test/suite_decryption.py b/test/suite_decryption.py 11 | index 1d25aa035a..06db0f12cf 100644 12 | --- a/test/suite_decryption.py 13 | +++ b/test/suite_decryption.py 14 | @@ -1089,6 +1089,7 @@ def softhsm(softhsm_paths, home_path, base_env): 15 | class case_decrypt_pkcs11(subprocesstest.SubprocessTestCase): 16 | def test_tls_pkcs11(self, cmd_tshark, dirs, capture_file, features, softhsm): 17 | '''Check that a RSA key in a PKCS #11 token enables decryption.''' 18 | + self.skipTest('defects4cpp') 19 | if not features.have_pkcs11: 20 | self.skipTest('Requires GnuTLS with PKCS #11 support.') 21 | key_file = os.path.join(dirs.key_dir, 'rsa-p-lt-q.p8') 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/wireshark/patch/0006-common.patch: -------------------------------------------------------------------------------- 1 | From 1c93822e290da51ecf318a794077e9b6aacfc3bb Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Fri, 10 Sep 2021 12:21:46 +0900 4 | Subject: [PATCH] common 5 | 6 | --- 7 | test/suite_decryption.py | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/test/suite_decryption.py b/test/suite_decryption.py 11 | index a366620adb..51a8934ef0 100644 12 | --- a/test/suite_decryption.py 13 | +++ b/test/suite_decryption.py 14 | @@ -1212,6 +1212,7 @@ def softhsm(softhsm_paths, home_path, base_env): 15 | class case_decrypt_pkcs11(subprocesstest.SubprocessTestCase): 16 | def test_tls_pkcs11(self, cmd_tshark, dirs, capture_file, features, softhsm): 17 | '''Check that a RSA key in a PKCS #11 token enables decryption.''' 18 | + self.skipTest('defects4cpp') 19 | if not features.have_pkcs11: 20 | self.skipTest('Requires GnuTLS with PKCS #11 support.') 21 | key_file = os.path.join(dirs.key_dir, 'rsa-p-lt-q.p8') 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/xbps/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:xbps 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/xbps/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/xbps/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/xbps/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From 7d507057d564a673f0aca448567588ce7870418a Mon Sep 17 00:00:00 2001 2 | From: Minhyuk Kwon 3 | Date: Fri, 10 Sep 2021 11:21:19 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/transaction_files.c | 8 -------- 8 | 1 file changed, 8 deletions(-) 9 | 10 | diff --git a/lib/transaction_files.c b/lib/transaction_files.c 11 | index ff865d89..fa2f1e3c 100644 12 | --- a/lib/transaction_files.c 13 | +++ b/lib/transaction_files.c 14 | @@ -445,14 +445,6 @@ collect_file(struct xbps_handle *xhp, const char *file, size_t size, 15 | * Multiple packages removing the same directory. 16 | * Record the last package to remove this directory. 17 | */ 18 | - if (idx < item->old.index || item->old.preserve) 19 | - return 0; 20 | - item->old.pkgname = pkgname; 21 | - item->old.pkgver = pkgver; 22 | - item->old.index = idx; 23 | - item->old.preserve = preserve; 24 | - item->old.update = update; 25 | - item->old.removepkg = removepkg; 26 | return 0; 27 | } else { 28 | /* 29 | -- 30 | 2.31.1.windows.1 31 | 32 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/xbps/patch/0001-common.patch: -------------------------------------------------------------------------------- 1 | From aefd1ac8c562d875daa836ce882c905e0ec697cc Mon Sep 17 00:00:00 2001 2 | From: hakumaku 3 | Date: Fri, 24 Sep 2021 14:24:10 +0900 4 | Subject: [PATCH] common 5 | 6 | --- 7 | run-tests | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/run-tests b/run-tests 11 | index 0601b564..efa149e0 100755 12 | --- a/run-tests 13 | +++ b/run-tests 14 | @@ -9,7 +9,7 @@ NPROCS=1 15 | if [ -r /proc/cpuinfo ]; then 16 | NPROCS=$(grep ^proc /proc/cpuinfo|wc -l) 17 | fi 18 | -LIBRARY_PATH=$PWD/lib LD_LIBRARY_PATH=$PWD/lib ATF_SHELL=/bin/sh kyua --variable parallelism=$NPROCS test -r result.db -k tests/xbps/Kyuafile 19 | +LIBRARY_PATH=$PWD/lib LD_LIBRARY_PATH=$PWD/lib ATF_SHELL=/bin/sh kyua --variable parallelism=$NPROCS test -r result.db -k tests/xbps/Kyuafile "$@" 20 | rv=$? 21 | kyua report --verbose -r result.db 22 | rm -f result.db 23 | -- 24 | 2.30.2 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/xbps/patch/0003-buggy.patch: -------------------------------------------------------------------------------- 1 | From a6789522883985e97ec0eb5535783f201936f259 Mon Sep 17 00:00:00 2001 2 | From: Minhyuk Kwon 3 | Date: Fri, 10 Sep 2021 11:58:17 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/transaction_check_revdeps.c | 5 +++-- 8 | 1 file changed, 3 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/lib/transaction_check_revdeps.c b/lib/transaction_check_revdeps.c 11 | index 389daab2..976f81b0 100644 12 | --- a/lib/transaction_check_revdeps.c 13 | +++ b/lib/transaction_check_revdeps.c 14 | @@ -174,8 +174,9 @@ xbps_transaction_check_revdeps(struct xbps_handle *xhp, xbps_array_t pkgs) 15 | } 16 | 17 | if ((revpkgd = xbps_find_pkg_in_array(pkgs, pkgname, 0))) { 18 | - if (xbps_transaction_pkg_type(revpkgd) == XBPS_TRANS_REMOVE) 19 | - continue; 20 | + ttype = xbps_transaction_pkg_type(revpkgd); 21 | + if (ttype == XBPS_TRANS_REMOVE) 22 | + revpkgd = NULL; 23 | } 24 | if (revpkgd == NULL) 25 | revpkgd = xbps_pkgdb_get_pkg(xhp, curpkgver); 26 | -- 27 | 2.31.1.windows.1 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/xbps/patch/0005-buggy.patch: -------------------------------------------------------------------------------- 1 | From 639e46badf51ae40574bde5195cc9ca24bbf08b5 Mon Sep 17 00:00:00 2001 2 | From: Minhyuk Kwon 3 | Date: Fri, 10 Sep 2021 12:10:08 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | lib/transaction_revdeps.c | 4 ---- 8 | 1 file changed, 4 deletions(-) 9 | 10 | diff --git a/lib/transaction_revdeps.c b/lib/transaction_revdeps.c 11 | index 73edd21c..b2a2286b 100644 12 | --- a/lib/transaction_revdeps.c 13 | +++ b/lib/transaction_revdeps.c 14 | @@ -238,10 +238,6 @@ xbps_transaction_revdeps(struct xbps_handle *xhp, xbps_array_t pkgs) 15 | * if a new version of this conflicting package 16 | * is in the transaction. 17 | */ 18 | - if (xbps_find_pkg_in_array(pkgs, pkgname, "update")) { 19 | - free(pkgname); 20 | - continue; 21 | - } 22 | free(pkgname); 23 | broken_pkg(mdeps, curpkgver, pkgver, tract); 24 | } 25 | -- 26 | 2.31.1.windows.1 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:18.04 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/yaml_cpp/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/extra/0001/.dpp/test_list: -------------------------------------------------------------------------------- 1 | EmitterTest.* 2 | EmitterErrorTest.* 3 | EncodingTest.* 4 | ErrorMessageTest.* 5 | GenEmitterTest.* 6 | HandlerSpecTest.* 7 | HandlerTest.* 8 | LoadNodeTest.* 9 | NodeTest.* 10 | NodeSpecTest.* 11 | NodeEmitterTest.* 12 | OstreamWrapperTest.* 13 | ParserTest.*-ParserTest.CVE* 14 | RegExTest.* 15 | ParserTest.CVE_2018_20573 16 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/extra/0002/.dpp/test_list: -------------------------------------------------------------------------------- 1 | EmitterTest.*-EmitterTest.GlobalLongKey* 2 | EmitterTest.GlobalLongKey* 3 | EmitterErrorTest.* 4 | EncodingTest.* 5 | ErrorMessageTest.* 6 | GenEmitterTest.* 7 | HandlerSpecTest.* 8 | HandlerTest.* 9 | LoadNodeTest.* 10 | NodeTest.* 11 | NodeSpecTest.* 12 | NodeEmitterTest.* 13 | OstreamWrapperTest.* 14 | ParserTest.* 15 | RegExTest.* 16 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/extra/0003/.dpp/test_list: -------------------------------------------------------------------------------- 1 | EmitterTest.* 2 | EmitterErrorTest.* 3 | EncodingTest.* 4 | ErrorMessageTest.* 5 | GenEmitterTest.* 6 | HandlerSpecTest.* 7 | HandlerTest.* 8 | LoadNodeTest.* 9 | NodeTest.*-NodeTest.LoadNullWithStrTag 10 | NodeTest.LoadNullWithStrTag 11 | NodeSpecTest.* 12 | NodeEmitterTest.* 13 | OstreamWrapperTest.* 14 | ParserTest.* 15 | RegExTest.* 16 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/extra/0004/.dpp/test_list: -------------------------------------------------------------------------------- 1 | EmitterTest.* 2 | EmitterErrorTest.* 3 | EncodingTest.* 4 | ErrorMessageTest.* 5 | GenEmitterTest.* 6 | HandlerSpecTest.* 7 | HandlerTest.* 8 | LoadNodeTest.* 9 | NodeTest.*-NodeTest.LoadTildeAsNull 10 | NodeTest.LoadTildeAsNull 11 | NodeSpecTest.* 12 | NodeEmitterTest.* 13 | OstreamWrapperTest.* 14 | ParserTest.* 15 | RegExTest.* 16 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/extra/0005/.dpp/test_list: -------------------------------------------------------------------------------- 1 | EmitterTest.*-EmitterTest.SingleLongKey 2 | EmitterTest.SingleLongKey 3 | EmitterErrorTest.* 4 | EncodingTest.* 5 | ErrorMessageTest.* 6 | GenEmitterTest.* 7 | HandlerSpecTest.* 8 | HandlerTest.* 9 | LoadNodeTest.* 10 | NodeTest.* 11 | NodeSpecTest.* 12 | NodeEmitterTest.* 13 | OstreamWrapperTest.* 14 | ParserTest.* 15 | RegExTest.* 16 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/extra/0006/.dpp/test_list: -------------------------------------------------------------------------------- 1 | EmitterTest.* 2 | EmitterErrorTest.* 3 | EncodingTest.* 4 | ErrorMessageTest.* 5 | GenEmitterTest.* 6 | HandlerSpecTest.* 7 | HandlerTest.* 8 | LoadNodeTest.* 9 | NodeTest.*-NodeTest.SpecialFlow 10 | NodeTest.SpecialFlow 11 | NodeSpecTest.* 12 | NodeEmitterTest.* 13 | OstreamWrapperTest.* 14 | ParserTest.* 15 | RegExTest.* 16 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/extra/0007/.dpp/test_list: -------------------------------------------------------------------------------- 1 | EmitterTest.*-EmitterTest.EmptyFlowMapWithBegunContent 2 | EmitterTest.EmptyFlowMapWithBegunContent 3 | EmitterErrorTest.* 4 | EncodingTest.* 5 | ErrorMessageTest.* 6 | GenEmitterTest.* 7 | HandlerSpecTest.* 8 | HandlerTest.* 9 | LoadNodeTest.* 10 | NodeTest.* 11 | NodeSpecTest.* 12 | NodeEmitterTest.* 13 | OstreamWrapperTest.* 14 | ParserTest.* 15 | RegExTest.* 16 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/extra/0008/.dpp/test_list: -------------------------------------------------------------------------------- 1 | EmitterTest.*-EmitterTest.LiteralWithoutTrailingSpaces 2 | EmitterTest.LiteralWithoutTrailingSpaces 3 | EmitterErrorTest.* 4 | EncodingTest.* 5 | ErrorMessageTest.* 6 | GenEmitterTest.* 7 | HandlerSpecTest.* 8 | HandlerTest.* 9 | LoadNodeTest.* 10 | NodeTest.* 11 | NodeSpecTest.* 12 | NodeEmitterTest.* 13 | OstreamWrapperTest.* 14 | ParserTest.* 15 | RegExTest.* 16 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/extra/0009/.dpp/test_list: -------------------------------------------------------------------------------- 1 | EmitterTest.*-EmitterTest.UserType2 2 | EmitterTest.UserType2 3 | EmitterErrorTest.* 4 | EncodingTest.* 5 | ErrorMessageTest.* 6 | GenEmitterTest.* 7 | HandlerSpecTest.* 8 | HandlerTest.* 9 | LoadNodeTest.* 10 | NodeTest.* 11 | NodeSpecTest.* 12 | NodeEmitterTest.* 13 | OstreamWrapperTest.* 14 | ParserTest.* 15 | RegExTest.* 16 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/extra/0010/.dpp/test_list: -------------------------------------------------------------------------------- 1 | EmitterTest.* 2 | EmitterErrorTest.* 3 | EncodingTest.* 4 | ErrorMessageTest.* 5 | GenEmitterTest.* 6 | HandlerSpecTest.* 7 | HandlerTest.* 8 | LoadNodeTest.* 9 | NodeTest.*-NodeTest.LoadTagWithNullScalar 10 | NodeTest.LoadTagWithNullScalar 11 | NodeSpecTest.* 12 | NodeEmitterTest.* 13 | OstreamWrapperTest.* 14 | ParserTest.* 15 | RegExTest.* 16 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From d6468c7278a4ab7882b46942dd7f1f0e154eef8d Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Tue, 16 Aug 2022 13:34:44 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/singledocparser.cpp | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/src/singledocparser.cpp b/src/singledocparser.cpp 11 | index 3e5638b..17ac1ae 100644 12 | --- a/src/singledocparser.cpp 13 | +++ b/src/singledocparser.cpp 14 | @@ -48,7 +48,6 @@ void SingleDocParser::HandleDocument(EventHandler& eventHandler) { 15 | } 16 | 17 | void SingleDocParser::HandleNode(EventHandler& eventHandler) { 18 | - DepthGuard<2000> depthguard(depth, m_scanner.mark(), ErrorMsg::BAD_FILE); 19 | 20 | // an empty node *is* a possibility 21 | if (m_scanner.empty()) { 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From 2839e641f784e757c2acf80df2c57ab4d0e2e309 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Tue, 16 Aug 2022 16:27:44 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/emitter.cpp | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | 10 | diff --git a/src/emitter.cpp b/src/emitter.cpp 11 | index 56ef403..cd2f8d1 100644 12 | --- a/src/emitter.cpp 13 | +++ b/src/emitter.cpp 14 | @@ -585,8 +585,6 @@ void Emitter::BlockMapPrepareLongKeyValue(EmitterNodeType::value child) { 15 | break; 16 | case EmitterNodeType::BlockSeq: 17 | case EmitterNodeType::BlockMap: 18 | - if (m_pState->HasBegunContent()) 19 | - m_stream << "\n"; 20 | SpaceOrIndentTo(true, curIndent + 1); 21 | break; 22 | } 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/patch/0005-buggy.patch: -------------------------------------------------------------------------------- 1 | From 772269b98dadd307678fca8c6d69bd9d3f7c8c83 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Wed, 17 Aug 2022 09:17:54 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/emitter.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/emitter.cpp b/src/emitter.cpp 11 | index ba52a38..327b1ce 100644 12 | --- a/src/emitter.cpp 13 | +++ b/src/emitter.cpp 14 | @@ -708,7 +708,7 @@ Emitter& Emitter::Write(const std::string& str) { 15 | Utils::ComputeStringFormat(str, m_pState->GetStringFormat(), 16 | m_pState->CurGroupFlowType(), stringEscaping == StringEscaping::NonAscii); 17 | 18 | - if (strFormat == StringFormat::Literal || str.size() > 1024) 19 | + if (strFormat == StringFormat::Literal) 20 | m_pState->SetMapKeyFormat(YAML::LongKey, FmtScope::Local); 21 | 22 | PrepareNode(EmitterNodeType::Scalar); 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/patch/0006-buggy.patch: -------------------------------------------------------------------------------- 1 | From e38a1014fa40c9d197c87eb555b00e37bcb54c49 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Wed, 17 Aug 2022 09:40:33 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/scanscalar.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/scanscalar.cpp b/src/scanscalar.cpp 11 | index be57b1c..0a47a46 100644 12 | --- a/src/scanscalar.cpp 13 | +++ b/src/scanscalar.cpp 14 | @@ -204,7 +204,7 @@ std::string ScanScalar(Stream& INPUT, ScanScalarParams& params) { 15 | 16 | // post-processing 17 | if (params.trimTrailingSpaces) { 18 | - std::size_t pos = scalar.find_last_not_of(" \t"); 19 | + std::size_t pos = scalar.find_last_not_of(' '); 20 | if (lastEscapedChar != std::string::npos) { 21 | if (pos < lastEscapedChar || pos == std::string::npos) { 22 | pos = lastEscapedChar; 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/patch/0007-buggy.patch: -------------------------------------------------------------------------------- 1 | From 96bfc3f9edd10151fd3e15f9bcba29ede01e15a7 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Wed, 17 Aug 2022 09:54:39 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/emitter.cpp | 6 +----- 8 | 1 file changed, 1 insertion(+), 5 deletions(-) 9 | 10 | diff --git a/src/emitter.cpp b/src/emitter.cpp 11 | index 251df8c..cb39611 100644 12 | --- a/src/emitter.cpp 13 | +++ b/src/emitter.cpp 14 | @@ -249,12 +249,8 @@ void Emitter::EmitEndMap() { 15 | if (m_stream.comment()) 16 | m_stream << "\n"; 17 | m_stream << IndentTo(m_pState->CurIndent()); 18 | - if (originalType == FlowType::Block) { 19 | + if (m_pState->CurGroupChildCount() == 0) 20 | m_stream << "{"; 21 | - } else { 22 | - if (m_pState->CurGroupChildCount() == 0 && !m_pState->HasBegunNode()) 23 | - m_stream << "{"; 24 | - } 25 | m_stream << "}"; 26 | } 27 | 28 | -- 29 | 2.25.1 30 | 31 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/patch/0008-buggy.patch: -------------------------------------------------------------------------------- 1 | From 66b7e45ee195e04f8a25412fe860ed41db9faa05 Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Wed, 17 Aug 2022 10:07:11 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/emitterutils.cpp | 4 ++-- 8 | 1 file changed, 2 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/src/emitterutils.cpp b/src/emitterutils.cpp 11 | index c6ad5e5..0113c45 100644 12 | --- a/src/emitterutils.cpp 13 | +++ b/src/emitterutils.cpp 14 | @@ -366,13 +366,13 @@ bool WriteDoubleQuotedString(ostream_wrapper& out, const std::string& str, 15 | bool WriteLiteralString(ostream_wrapper& out, const std::string& str, 16 | std::size_t indent) { 17 | out << "|\n"; 18 | + out << IndentTo(indent); 19 | int codePoint; 20 | for (std::string::const_iterator i = str.begin(); 21 | GetNextCodePointAndAdvance(codePoint, i, str.end());) { 22 | if (codePoint == '\n') { 23 | - out << "\n"; 24 | + out << "\n" << IndentTo(indent); 25 | } else { 26 | - out<< IndentTo(indent); 27 | WriteCodePoint(out, codePoint); 28 | } 29 | } 30 | -- 31 | 2.25.1 32 | 33 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/patch/0009-buggy.patch: -------------------------------------------------------------------------------- 1 | From 8ef24bc96091f0a4a036b0268a01d3be2d9e20bf Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Wed, 17 Aug 2022 10:14:14 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/exp.h | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/exp.h b/src/exp.h 11 | index c623ec9..301449e 100644 12 | --- a/src/exp.h 13 | +++ b/src/exp.h 14 | @@ -37,7 +37,7 @@ inline const RegEx& Blank() { 15 | return e; 16 | } 17 | inline const RegEx& Break() { 18 | - static const RegEx e = RegEx('\n') | RegEx("\r"); 19 | + static const RegEx e = RegEx('\n') | RegEx("\r\n"); 20 | return e; 21 | } 22 | inline const RegEx& BlankOrBreak() { 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yaml_cpp/patch/0010-buggy.patch: -------------------------------------------------------------------------------- 1 | From 27240fd978af52eb751420cd7c300a0d207159bf Mon Sep 17 00:00:00 2001 2 | From: crAy 3 | Date: Wed, 31 Aug 2022 09:28:49 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | src/singledocparser.cpp | 4 ---- 8 | 1 file changed, 4 deletions(-) 9 | 10 | diff --git a/src/singledocparser.cpp b/src/singledocparser.cpp 11 | index 47e9e04..8c1c9d2 100644 12 | --- a/src/singledocparser.cpp 13 | +++ b/src/singledocparser.cpp 14 | @@ -80,10 +80,6 @@ void SingleDocParser::HandleNode(EventHandler& eventHandler) { 15 | eventHandler.OnAnchor(mark, anchor_name); 16 | 17 | // after parsing properties, an empty node is again a possibility 18 | - if (m_scanner.empty()) { 19 | - eventHandler.OnNull(mark, anchor); 20 | - return; 21 | - } 22 | 23 | const Token& token = m_scanner.peek(); 24 | 25 | -- 26 | 2.25.1 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yara/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:yara 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yara/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/yara/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/yara/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From f589fa1ab29de665c2e2357e5d85bf421b29b340 Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Thu, 8 Jul 2021 15:12:01 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | libyara/parser.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/libyara/parser.c b/libyara/parser.c 11 | index dd696f6d..6789a341 100644 12 | --- a/libyara/parser.c 13 | +++ b/libyara/parser.c 14 | @@ -730,7 +730,7 @@ int yr_parser_reduce_rule_declaration_phase_1( 15 | yr_hash_table_lookup( 16 | compiler->objects_table, 17 | identifier, 18 | - NULL) != NULL) 19 | + compiler->current_namespace->name) != NULL) 20 | { 21 | // A rule or variable with the same identifier already exists, return the 22 | // appropriate error. 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yara/patch/0002-buggy.patch: -------------------------------------------------------------------------------- 1 | From 564a6f1f9ee9d62725590bda6de4cd4de4354827 Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Thu, 8 Jul 2021 15:16:42 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | libyara/scan.c | 4 +--- 8 | 1 file changed, 1 insertion(+), 3 deletions(-) 9 | 10 | diff --git a/libyara/scan.c b/libyara/scan.c 11 | index c26115da..b1214b23 100644 12 | --- a/libyara/scan.c 13 | +++ b/libyara/scan.c 14 | @@ -196,9 +196,7 @@ static int _yr_scan_wicompare( 15 | if (data_size < string_length * 2) 16 | return 0; 17 | 18 | - while (i < string_length && 19 | - yr_lowercase[*s1] == yr_lowercase[*s2] && 20 | - *(s1 + 1) == 0x00) 21 | + while (i < string_length && yr_lowercase[*s1] == yr_lowercase[*s2]) 22 | { 23 | s1+=2; 24 | s2++; 25 | -- 26 | 2.25.1 27 | 28 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/yara/patch/0003-buggy.patch: -------------------------------------------------------------------------------- 1 | From 077ffa3030fb3f1298d6f5306da153d42eaece0d Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Thu, 8 Jul 2021 15:17:54 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | libyara/atoms.c | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/libyara/atoms.c b/libyara/atoms.c 11 | index 12b25e58..6c679792 100644 12 | --- a/libyara/atoms.c 13 | +++ b/libyara/atoms.c 14 | @@ -1072,7 +1072,6 @@ static int _yr_atoms_extract_from_re( 15 | best_atom_re_nodes[i] = recent_re_nodes[i + shift]; 16 | } 17 | 18 | - best_atom.length = atom.length; 19 | best_quality = quality; 20 | } 21 | 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/zsh/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Suresoft Technologies Inc. 2 | # Licensed under the MIT 3 | FROM hschoe/defects4cpp-ubuntu:zsh 4 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/zsh/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/bugscpp/taxonomy/zsh/__init__.py -------------------------------------------------------------------------------- /bugscpp/taxonomy/zsh/patch/0001-buggy.patch: -------------------------------------------------------------------------------- 1 | From 16fd95105607b93b86190732523ea87bd5bf70c6 Mon Sep 17 00:00:00 2001 2 | From: hschoe 3 | Date: Wed, 15 Sep 2021 13:47:40 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | Src/exec.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/Src/exec.c b/Src/exec.c 11 | index 1f23a862d..79d8064b6 100644 12 | --- a/Src/exec.c 13 | +++ b/Src/exec.c 14 | @@ -4622,7 +4622,7 @@ getoutput(char *cmd, int qt) 15 | char *s; 16 | 17 | int onc = nocomments; 18 | - nocomments = (interact && !sourcelevel && unset(INTERACTIVECOMMENTS)); 19 | + nocomments = (interact && unset(INTERACTIVECOMMENTS)); 20 | prog = parse_string(cmd, 0); 21 | nocomments = onc; 22 | 23 | -- 24 | 2.17.1 25 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/zsh/patch/0003-buggy.patch: -------------------------------------------------------------------------------- 1 | From f6e54c74cdfda481b6aed1b8aaf78933d8f935b2 Mon Sep 17 00:00:00 2001 2 | From: hschoe 3 | Date: Thu, 16 Sep 2021 10:52:05 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | Src/parse.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/Src/parse.c b/Src/parse.c 11 | index be26112a5..b09c7989a 100644 12 | --- a/Src/parse.c 13 | +++ b/Src/parse.c 14 | @@ -2509,7 +2509,7 @@ par_cond_2(void) 15 | * In "test" compatibility mode, "! -a ..." and "! -o ..." 16 | * are treated as "[string] [and] ..." and "[string] [or] ...". 17 | */ 18 | - if (!(n_testargs > 2 && (check_cond(*testargs, "a") || 19 | + if (!(n_testargs > 1 && (check_cond(*testargs, "a") || 20 | check_cond(*testargs, "o")))) 21 | { 22 | condlex(); 23 | -- 24 | 2.17.1 25 | 26 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/zsh/patch/0004-buggy.patch: -------------------------------------------------------------------------------- 1 | From 061bcf3cab0eb499476b7b5d5ee9c8b0038c0df6 Mon Sep 17 00:00:00 2001 2 | From: hschoe 3 | Date: Thu, 16 Sep 2021 11:02:05 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | Src/subst.c | 12 +++++------- 8 | 1 file changed, 5 insertions(+), 7 deletions(-) 9 | 10 | diff --git a/Src/subst.c b/Src/subst.c 11 | index 465fe970f..87a56c3c6 100644 12 | --- a/Src/subst.c 13 | +++ b/Src/subst.c 14 | @@ -3362,15 +3362,13 @@ colonsubscript: 15 | return NULL; 16 | } 17 | if (*check_offset2) { 18 | - char *nextp; 19 | check_offset = check_colon_subscript(check_offset2 + 1, 20 | - &nextp); 21 | + &check_offset2); 22 | + if (*check_offset2 && *check_offset2 != ':') { 23 | + zerr("invalid length: %s", check_offset); 24 | + return NULL; 25 | + } 26 | if (check_offset) { 27 | - check_offset2 = nextp; 28 | - if (*check_offset2 && *check_offset2 != ':') { 29 | - zerr("invalid length: %s", check_offset); 30 | - return NULL; 31 | - } 32 | length = mathevali(check_offset); 33 | length_set = 1; 34 | if (errflag) 35 | -- 36 | 2.17.1 37 | 38 | -------------------------------------------------------------------------------- /bugscpp/taxonomy/zsh/patch/0005-buggy.patch: -------------------------------------------------------------------------------- 1 | From 4c55386f2afc260bfe284aa15b9b1d099ffd896d Mon Sep 17 00:00:00 2001 2 | From: Hansol Choe 3 | Date: Thu, 23 Sep 2021 14:18:19 +0900 4 | Subject: [PATCH] buggy 5 | 6 | --- 7 | Src/Modules/zutil.c | 3 +-- 8 | 1 file changed, 1 insertion(+), 2 deletions(-) 9 | 10 | diff --git a/Src/Modules/zutil.c b/Src/Modules/zutil.c 11 | index 691ba6c2f..cecea6d51 100644 12 | --- a/Src/Modules/zutil.c 13 | +++ b/Src/Modules/zutil.c 14 | @@ -200,8 +200,7 @@ printstylenode(HashNode hn, int printflags) 15 | else { 16 | printf("zstyle %s", (p->eval ? "-e " : "")); 17 | quotedzputs(p->pat, stdout); 18 | - putchar(' '); 19 | - quotedzputs(s->node.nam, stdout); 20 | + printf(" %s", s->node.nam); 21 | } 22 | for (v = p->vals; *v; v++) { 23 | putchar(' '); 24 | -- 25 | 2.17.1 26 | 27 | -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- 1 | # Minimal makefile for Sphinx documentation 2 | # 3 | 4 | # You can set these variables from the command line, and also 5 | # from the environment for the first two. 6 | SPHINXOPTS ?= 7 | SPHINXBUILD ?= sphinx-build 8 | SOURCEDIR = source 9 | BUILDDIR = build 10 | 11 | # Put it first so that "make" without argument is like "make help". 12 | help: 13 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 14 | 15 | .PHONY: help Makefile api taxonomy 16 | 17 | # Catch-all target: route all unknown targets to Sphinx using the new 18 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). 19 | %: Makefile 20 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 21 | 22 | api: 23 | sphinx-apidoc --templatedir=source/_templates -f -o source/api .. 24 | 25 | taxonomy: 26 | @python source/gen_taxonomy.py 27 | -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | pushd %~dp0 4 | 5 | REM Command file for Sphinx documentation 6 | 7 | if "%SPHINXBUILD%" == "" ( 8 | set SPHINXBUILD=sphinx-build 9 | ) 10 | set SOURCEDIR=source 11 | set BUILDDIR=build 12 | 13 | if "%1" == "" goto help 14 | 15 | %SPHINXBUILD% >NUL 2>NUL 16 | if errorlevel 9009 ( 17 | echo. 18 | echo.The 'sphinx-build' command was not found. Make sure you have Sphinx 19 | echo.installed, then set the SPHINXBUILD environment variable to point 20 | echo.to the full path of the 'sphinx-build' executable. Alternatively you 21 | echo.may add the Sphinx directory to PATH. 22 | echo. 23 | echo.If you don't have Sphinx installed, grab it from 24 | echo.https://www.sphinx-doc.org/ 25 | exit /b 1 26 | ) 27 | 28 | %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% 29 | goto end 30 | 31 | :help 32 | %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% 33 | 34 | :end 35 | popd 36 | -------------------------------------------------------------------------------- /docs/requirements.txt: -------------------------------------------------------------------------------- 1 | alabaster==0.7.12 2 | Babel==2.9.1 3 | beautifulsoup4==4.10.0 4 | coverage==5.5 5 | css-html-js-minify==2.5.5 6 | defusedxml==0.7.1 7 | docutils==0.17.1 8 | flake8==3.9.2 9 | flake8-html==0.4.1 10 | genbadge==1.0.6 11 | imagesize==1.2.0 12 | importlib-metadata==4.6.1 13 | Jinja2==3.1.1 14 | lxml==4.6.3 15 | MarkupSafe==2.0.1 16 | mccabe==0.6.1 17 | Pillow==9.0.0 18 | pycodestyle==2.7.0 19 | pyflakes==2.3.1 20 | Pygments==2.10.0 21 | pytest-cov==2.12.1 22 | python-slugify==5.0.2 23 | pytz==2021.3 24 | snowballstemmer==2.1.0 25 | soupsieve==2.2.1 26 | Sphinx==4.2.0 27 | sphinx-material==0.0.34 28 | sphinxcontrib-applehelp==1.0.2 29 | sphinxcontrib-autoprogram==0.1.7 30 | sphinxcontrib-devhelp==1.0.2 31 | sphinxcontrib-htmlhelp==2.0.0 32 | sphinxcontrib-jsmath==1.0.1 33 | sphinxcontrib-qthelp==1.0.3 34 | sphinxcontrib-serializinghtml==1.1.5 35 | text-unidecode==1.3 36 | typed-ast==1.4.3 37 | typing-extensions==3.10.0.0 38 | Unidecode==1.3.2 39 | zipp==3.5.0 40 | -------------------------------------------------------------------------------- /docs/source/_templates/autosummary_class.rst: -------------------------------------------------------------------------------- 1 | {{ fullname | escape | underline}} 2 | 3 | .. currentmodule:: {{ module }} 4 | 5 | .. autoclass:: {{ objname }} 6 | :members: 7 | :show-inheritance: 8 | :inherited-members: 9 | :no-special-members: 10 | 11 | {% block methods %} 12 | .. automethod:: __init__ 13 | 14 | {% if methods %} 15 | .. rubric:: {{ _('Methods') }} 16 | 17 | .. autosummary:: 18 | {% for item in methods %} 19 | ~{{ name }}.{{ item }} 20 | {%- endfor %} 21 | {% endif %} 22 | {% endblock %} 23 | 24 | {% block attributes %} 25 | {% if attributes %} 26 | .. rubric:: {{ _('Attributes') }} 27 | 28 | .. autosummary:: 29 | {% for item in attributes %} 30 | ~{{ name }}.{{ item }} 31 | {%- endfor %} 32 | {% endif %} 33 | {% endblock %} 34 | -------------------------------------------------------------------------------- /docs/source/_templates/package.rst_t: -------------------------------------------------------------------------------- 1 | {% macro automodule(modname, options) %} 2 | .. automodule:: {{ modname }} 3 | {% for option in options %} 4 | :{{ option }}: 5 | {% endfor %} 6 | {% endmacro %} 7 | 8 | {% macro toctree(docnames) -%} 9 | .. toctree:: 10 | :maxdepth: 1 11 | {% for docname in docnames %} 12 | {{ docname }} 13 | {% endfor %} 14 | {% endmacro %} 15 | 16 | {% if is_namespace %} 17 | {{ [pkgname, "namespace"] | join(" ") | e | heading }} 18 | {% else %} 19 | {{ pkgname | e | heading }} 20 | {% endif %} 21 | 22 | {% if subpackages %} 23 | Subpackage 24 | 25 | {{ toctree(subpackages) }} 26 | {% endif %} 27 | 28 | {% if submodules %} 29 | Modules Summary 30 | 31 | .. autosummary:: 32 | :toctree: _autosummary 33 | :template: autosummary_module.rst 34 | {% for submodule in submodules %} 35 | ~{{ submodule }} 36 | {% endfor %} 37 | {% endif %} 38 | -------------------------------------------------------------------------------- /docs/source/changelog.rst: -------------------------------------------------------------------------------- 1 | Change Log 2 | ========== 3 | 4 | .. include:: ../../README.rst 5 | :start-after: .. begin changelog 6 | :end-before: .. end changelog 7 | -------------------------------------------------------------------------------- /docs/source/contribute.rst: -------------------------------------------------------------------------------- 1 | Contributing 2 | ============ 3 | 4 | .. include:: ../../README.rst 5 | :start-after: .. begin contribute 6 | :end-before: .. end contribute 7 | -------------------------------------------------------------------------------- /docs/source/faq.rst: -------------------------------------------------------------------------------- 1 | Frequently Asked Questions 2 | ========================== 3 | -------------------------------------------------------------------------------- /docs/source/guide.rst: -------------------------------------------------------------------------------- 1 | Defects4cpp User Guide 2 | ====================== 3 | 4 | .. include:: ../../README.rst 5 | :start-after: .. begin example 6 | :end-before: .. end example 7 | 8 | .. autoprogram:: bugscpp.processor.checkout:CheckoutCommand().parser 9 | :prog: bugscpp checkout 10 | 11 | .. autoprogram:: bugscpp.processor.build:BuildCommand().parser 12 | :prog: bugscpp build 13 | 14 | .. autoprogram:: bugscpp.processor.test:TestCommand().parser 15 | :prog: bugscpp test 16 | 17 | .. _case-example: 18 | 19 | Case Expression: 20 | 21 | ``,`` 22 | | select distinctive cases 23 | | --case=1,2,3 will run 1, 2 and 3. 24 | 25 | ``-`` 26 | | select a range of cases 27 | | --case=1-3 will run from 1 to 3. 28 | 29 | ``:`` 30 | | expression after colon will be used to exclude cases 31 | | --case=1-5:1 will run from 1 to 5 except 1. 32 | | --case=1-5:1,2 will run from 1 to 5 except 1 and 2. 33 | | --case=1-5:3-5 will run from 1 to 5 except from 3 to 5. 34 | -------------------------------------------------------------------------------- /docs/source/index.rst: -------------------------------------------------------------------------------- 1 | Defects4Cpp 2 | ======================================= 3 | 4 | .. include:: ../../README.rst 5 | :start-after: .. begin abstract 6 | :end-before: .. end abstract 7 | 8 | .. toctree:: 9 | :maxdepth: 1 10 | :caption: Contents: 11 | 12 | Installation 13 | Defects4cpp User Guide 14 | A List of Defect Taxonomy 15 | Frequently Asked Questions 16 | Contributing 17 | Change Log 18 | License 19 | Development API 20 | 21 | Indices and tables 22 | ================== 23 | 24 | :ref:`genindex` 25 | 26 | :ref:`modindex` 27 | -------------------------------------------------------------------------------- /docs/source/installation.rst: -------------------------------------------------------------------------------- 1 | Installation 2 | ============ 3 | 4 | .. include:: ../../README.rst 5 | :start-after: .. begin installation 6 | :end-before: .. end installation 7 | -------------------------------------------------------------------------------- /docs/source/license.rst: -------------------------------------------------------------------------------- 1 | License 2 | ======= 3 | 4 | .. include:: ../../README.rst 5 | :start-after: .. begin license 6 | :end-before: .. end license 7 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length = 120 3 | 4 | [tool.black] 5 | extend-exclude = ''' 6 | ^/bugscpp\/taxonomy 7 | ''' 8 | -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- 1 | [pytest] 2 | pythonpath = bugscpp 3 | testpaths = tests 4 | markers = 5 | slow: marks tests as slow 6 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | certifi==2022.9.24 2 | charset-normalizer==2.1.1 3 | colorama==0.4.5 4 | docker==6.0.0 5 | gitdb==4.0.9 6 | GitPython==3.1.27 7 | idna==3.3 8 | requests==2.28.1 9 | smmap==5.0.0 10 | typing-extensions==4.3.0 11 | urllib3==1.26.12 12 | websocket-client==1.4.1 13 | -------------------------------------------------------------------------------- /requirements_dev.txt: -------------------------------------------------------------------------------- 1 | attrs==22.1.0 2 | black==22.8.0 3 | certifi==2022.9.24 4 | charset-normalizer==2.1.1 5 | click==8.1.3 6 | colorama==0.4.5 7 | coverage==6.5.0 8 | docker==6.0.0 9 | flake8==5.0.4 10 | gitdb==4.0.9 11 | GitPython==3.1.27 12 | idna==3.3 13 | iniconfig==1.1.1 14 | isort==5.10.1 15 | Jinja2==2.9.0 16 | mccabe==0.7.0 17 | mypy-extensions==0.4.3 18 | packaging==21.3 19 | pathspec==0.10.1 20 | platformdirs==2.5.2 21 | pluggy==1.0.0 22 | py==1.11.0 23 | pycodestyle==2.9.1 24 | pyflakes==2.5.0 25 | pyparsing==3.0.9 26 | pytest==7.1.3 27 | pytest-cov==4.0.0 28 | pytest-sugar==0.9.5 29 | regex==2022.9.13 30 | requests==2.28.1 31 | smmap==5.0.0 32 | termcolor==2.0.1 33 | toml==0.10.2 34 | tomli==2.0.1 35 | typing-extensions==4.3.0 36 | urllib3==1.26.12 37 | websocket-client==1.4.1 38 | whatthepatch==1.0.2 39 | -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length = 119 3 | select=E,F,W,C90 4 | exclude= 5 | __pycache__, 6 | .git, 7 | .github, 8 | venv 9 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | from setuptools import setup 2 | 3 | if __name__ == "__main__": 4 | setup( 5 | name="bugscpp", 6 | version="0.1", 7 | packages=["bugscpp"], 8 | url="https://github.com/Suresoft-GLaDOS/bugscpp", 9 | license="MIT", 10 | author="suresofttech", 11 | author_email="analysis@suresofttech.com", 12 | description="A database of real-world C/C++ defaults to experiment in software engineering research", 13 | ) 14 | -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/tests/__init__.py -------------------------------------------------------------------------------- /tests/message/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/tests/message/__init__.py -------------------------------------------------------------------------------- /tests/processor/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/tests/processor/__init__.py -------------------------------------------------------------------------------- /tests/processor/test_help.py: -------------------------------------------------------------------------------- 1 | from bugscpp.command import CommandList, HelpCommand 2 | 3 | 4 | def test_check_help_attr(): 5 | commands = CommandList() 6 | assert "help" in commands 7 | 8 | 9 | def test_check_help_help(): 10 | helpCommand = HelpCommand() 11 | assert helpCommand.help == "Display help messages" 12 | 13 | 14 | def test_check_help_run(): 15 | helpCommand = HelpCommand() 16 | assert helpCommand.run([]) 17 | -------------------------------------------------------------------------------- /tests/processor/test_show.py: -------------------------------------------------------------------------------- 1 | from bugscpp.command import CommandList, ShowCommand 2 | 3 | 4 | def test_check_show_attr(): 5 | commands = CommandList() 6 | assert "show" in commands 7 | 8 | 9 | def test_check_show_help(): 10 | showCommand = ShowCommand() 11 | assert showCommand.help == "Display defect taxonomies status" 12 | 13 | 14 | def test_check_show_run(capsys): 15 | showCommand = ShowCommand() 16 | assert "example" not in capsys.readouterr() 17 | -------------------------------------------------------------------------------- /tests/processor/test_vcs.py: -------------------------------------------------------------------------------- 1 | from bugscpp.command import CheckoutCommand 2 | 3 | 4 | def test_checkout_fixed(tmp_path, gitenv): 5 | checkout = CheckoutCommand() 6 | project = "yara" 7 | number = "1" 8 | # Run twice 9 | checkout(f"{project} {number} --target {str(tmp_path)}".split()) 10 | checkout(f"{project} {number} --target {str(tmp_path)}".split()) 11 | 12 | 13 | def test_checkout_buggy(tmp_path, gitenv): 14 | checkout = CheckoutCommand() 15 | project = "yara" 16 | number = "1" 17 | # Run twice 18 | checkout(f"{project} {number} --buggy --target {str(tmp_path)}".split()) 19 | checkout(f"{project} {number} --buggy --target {str(tmp_path)}".split()) 20 | -------------------------------------------------------------------------------- /tests/resource/corrupted-test.orig.patch: -------------------------------------------------------------------------------- 1 | From df7b15a4053e762fd3305624ce0ba595b70f940d Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Mon, 18 Oct 2021 10:04:05 +0900 4 | Subject: [PATCH] test 5 | 6 | --- 7 | foo.txt | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/foo.txt b/foo.txt 11 | index af5626b..7cbf421 100644 12 | --- a/foo.txt 13 | +++ b/foo.txt 14 | @@ -1 +1 @@ 15 | -Hello, world! 16 | +Hello, world! Bye, world! 17 | -- 18 | 2.25.1 19 | 20 | -------------------------------------------------------------------------------- /tests/resource/corrupted-test.patch: -------------------------------------------------------------------------------- 1 | From df7b15a4053e762fd3305624ce0ba595b70f940d Mon Sep 17 00:00:00 2001 2 | From: haku 3 | Date: Mon, 18 Oct 2021 10:04:05 +0900 4 | Subject: [PATCH] test 5 | 6 | --- 7 | foo.txt | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/foo.txt b/foo.txt 11 | index af5626b..7cbf421 100644 12 | --- a/foo.txt 13 | +++ b/foo.txt 14 | @@ -1 +1 @@ 15 | -H llo, world! 16 | +Hello, world! Bye, world! 17 | -- 18 | 2.25.1 19 | 20 | -------------------------------------------------------------------------------- /tests/script/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/tests/script/__init__.py -------------------------------------------------------------------------------- /tests/script/test_readme_generator.py: -------------------------------------------------------------------------------- 1 | from pathlib import Path 2 | 3 | from bugscpp.taxonomy import Taxonomy 4 | from readme_generator import generate_readme 5 | 6 | 7 | def test_readme_generator(tmpdir): 8 | output_readme_path = tmpdir / "README.rst" 9 | input_template_file_path = ( 10 | Path(__file__).parent.parent.parent / "README.rst.template" 11 | ) 12 | input_origin_readme_path = Path(__file__).parent.parent.parent / "README.rst" 13 | generate_readme(Taxonomy(), input_template_file_path, output_readme_path) 14 | 15 | readme_origin = open(input_origin_readme_path, "r") 16 | readme_output = open(output_readme_path, "r") 17 | 18 | assert ( 19 | readme_origin.readlines() == readme_output.readlines() 20 | ), "README.rst is not correct!" 21 | -------------------------------------------------------------------------------- /tests/taxonomy/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Suresoft-GLaDOS/bugscpp/be5cc489cb2b3127ec3b73cb4adfdd290807f55b/tests/taxonomy/__init__.py -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- 1 | [tox] 2 | minverison = 3.8.0 3 | envlist = py37, py38, py39 4 | isolated_build = true 5 | skipsdist = true 6 | 7 | [testenv] 8 | setenv = 9 | PYTHONPATH = {toxinidir}/bugscpp 10 | deps = 11 | -r{toxinidir}/requirements_dev.txt 12 | commands = 13 | python -m pytest tests \ 14 | --basetemp={envtmpdir} \ 15 | --ignore tests/taxonomy 16 | 17 | [pytest] 18 | minversion = 6.0 19 | addopts = -ra -q 20 | testpaths = 21 | tests 22 | 23 | [gh-actions] 24 | python = 25 | 3.7: py37 26 | 3.8: py38 27 | 3.9: py39 28 | --------------------------------------------------------------------------------