You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.
Describe the bug
While compiling the latest version of MD with unit tests enabled, my build environment gave me the following error:
error: 'MD_UpdateTableSignature' accessing 32 bytes in a region of size 13 [-Werror=stringop-overflow=]
Code snips
The bug relates to this line and a few others with the same variable used for testing MD signatures. It seems as though the compiler does not like that newsignature is implicitly a 13 byte string as opposed to a 32 byte string, which is what the function MD_UpdateTableSignature(uint16 TableIndex, char NewSignature[MD_SIGNATURE_FIELD_LENGTH]) expects
Checklist (Please check before submitting)
Describe the bug
While compiling the latest version of MD with unit tests enabled, my build environment gave me the following error:
Code snips
The bug relates to this line and a few others with the same variable used for testing MD signatures. It seems as though the compiler does not like that
newsignature
is implicitly a 13 byte string as opposed to a 32 byte string, which is what the functionMD_UpdateTableSignature(uint16 TableIndex, char NewSignature[MD_SIGNATURE_FIELD_LENGTH])
expectsMD/unit-test/md_dwell_tbl_tests.c
Line 1117 in 87e0c1f
For now, simply explicitly using the size of the array in the variable definition seems to work successfully.
After changing to this locally wherever it appeared, my build works fine.
The text was updated successfully, but these errors were encountered: