feat: Massive changes #45
8 new issues (0 max.) of at least minor severity.
Annotations
Check warning on line 23 in src/ir/irs/values.c
codacy-production / Codacy Static Code Analysis
src/ir/irs/values.c#L23
Avoid the 'ato*()' family of functions.
Check warning on line 23 in src/ir/irs/values.c
codacy-production / Codacy Static Code Analysis
src/ir/irs/values.c#L23
The `atoi` family of functions can potentially overflow or underflow integer values.
Check notice on line 23 in src/ir/irs/values.c
codacy-production / Codacy Static Code Analysis
src/ir/irs/values.c#L23
Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended).
Check notice on line 107 in src/parser/asts/functions.c
codacy-production / Codacy Static Code Analysis
src/parser/asts/functions.c#L107
Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126).
Check failure on line 107 in src/parser/asts/functions.c
codacy-production / Codacy Static Code Analysis
src/parser/asts/functions.c#L107
The `strlen` family of functions does not handle strings that are not null terminated.
Check warning on line 16 in src/qasm/parser/values.c
codacy-production / Codacy Static Code Analysis
src/qasm/parser/values.c#L16
Avoid the 'ato*()' family of functions.
Check warning on line 16 in src/qasm/parser/values.c
codacy-production / Codacy Static Code Analysis
src/qasm/parser/values.c#L16
The `atoi` family of functions can potentially overflow or underflow integer values.
Check notice on line 16 in src/qasm/parser/values.c
codacy-production / Codacy Static Code Analysis
src/qasm/parser/values.c#L16
Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended).