-
Notifications
You must be signed in to change notification settings - Fork 19
CI: Add musl+gcc to regression test workflow #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JanCBrammer
approved these changes
Feb 13, 2024
Collaborator
JanCBrammer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! The workflow fails as intended with a manipulated reference (https://github.com/flange-ipb/InChI/actions/runs/7846614779).
ricrogz
added a commit
to ricrogz/InChI
that referenced
this pull request
Feb 22, 2025
(if we start moving from the 7th byte, we have to reduce the number
of bytes by the same amount, or we'll overflow the buffer!)
==7771==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x503000000084 at pc 0x7b8e82ee93c0 bp 0x7ffe4113cbb0 sp 0x7ffe4113c370
READ of size 18 at 0x503000000084 thread T0
#0 0x7b8e82ee93bf in memmove (/usr/local/lib64/libasan.so.8+0xf73bf)
IUPAC-InChI#1 0x5f5cdd in get_V3000_input_line_to_strbuf ../../../INCHI_BASE/src/mol_fmt3.c:1875
IUPAC-InChI#2 0x5f5e95 in MolfileV3000ReadCTABBeginAndCountsLine ../../../INCHI_BASE/src/mol_fmt3.c:475
IUPAC-InChI#3 0x5ec962 in MolfileReadDataLines ../../../INCHI_BASE/src/mol_fmt1.c:252
IUPAC-InChI#4 0x5f216f in ReadMolfile ../../../INCHI_BASE/src/mol_fmt1.c:130
IUPAC-InChI#5 0x60559b in ReadMolfileToInpAtoms ../../../INCHI_BASE/src/mol2atom.c:373
IUPAC-InChI#6 0x605b7e in CreateOrigInpDataFromMolfile ../../../INCHI_BASE/src/mol2atom.c:160
IUPAC-InChI#7 0x61bcc5 in ReadTheStructure ../../../INCHI_BASE/src/runichi2.c:470
IUPAC-InChI#8 0x61cc8c in GetOneStructure ../../../INCHI_BASE/src/runichi2.c:229
IUPAC-InChI#9 0x659b16 in GetTheNextRecordOfInputFile ../src/ichimain.c:1092
IUPAC-InChI#10 0x65e7f1 in ProcessSingleInputFile ../src/ichimain.c:816
IUPAC-InChI#11 0x65f9ae in main ../src/ichimain.c:250
IUPAC-InChI#12 0x7b8e828be249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
IUPAC-InChI#13 0x7b8e828be304 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27304) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
IUPAC-InChI#14 0x4025a0 in _start (/inchi/INCHI-1-TEST/exes/inchi-1+0x4025a0)
djb-rwth
pushed a commit
that referenced
this pull request
Feb 23, 2025
(if we start moving from the 7th byte, we have to reduce the number
of bytes by the same amount, or we'll overflow the buffer!)
==7771==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x503000000084 at pc 0x7b8e82ee93c0 bp 0x7ffe4113cbb0 sp 0x7ffe4113c370
READ of size 18 at 0x503000000084 thread T0
#0 0x7b8e82ee93bf in memmove (/usr/local/lib64/libasan.so.8+0xf73bf)
#1 0x5f5cdd in get_V3000_input_line_to_strbuf ../../../INCHI_BASE/src/mol_fmt3.c:1875
#2 0x5f5e95 in MolfileV3000ReadCTABBeginAndCountsLine ../../../INCHI_BASE/src/mol_fmt3.c:475
#3 0x5ec962 in MolfileReadDataLines ../../../INCHI_BASE/src/mol_fmt1.c:252
#4 0x5f216f in ReadMolfile ../../../INCHI_BASE/src/mol_fmt1.c:130
#5 0x60559b in ReadMolfileToInpAtoms ../../../INCHI_BASE/src/mol2atom.c:373
#6 0x605b7e in CreateOrigInpDataFromMolfile ../../../INCHI_BASE/src/mol2atom.c:160
#7 0x61bcc5 in ReadTheStructure ../../../INCHI_BASE/src/runichi2.c:470
#8 0x61cc8c in GetOneStructure ../../../INCHI_BASE/src/runichi2.c:229
#9 0x659b16 in GetTheNextRecordOfInputFile ../src/ichimain.c:1092
#10 0x65e7f1 in ProcessSingleInputFile ../src/ichimain.c:816
#11 0x65f9ae in main ../src/ichimain.c:250
#12 0x7b8e828be249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
#13 0x7b8e828be304 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27304) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
#14 0x4025a0 in _start (/inchi/INCHI-1-TEST/exes/inchi-1+0x4025a0)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add CI workflow for compilation and regression testing of libinchi using gcc and musl (a popular C standard library). Flawless compilation with musl has become possible with 1.07-beta.3's definition of
is_asciiin INCHI-1-SRC/INCHI_BASE/src/util.c (see commit c778dfa).Changes to the CI workflow:
Lessons learned:
ldd --versiondoes not return with exitcode 0.