I've ported (stolen from KallistiOS) genromfs to build on Windows for ps2sdk-ports, but there may be potential bugs. Here are the problems.
line 434: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20).
line 555: 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).
line 972: 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).
line 990: 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).
line 1037: 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).
How do I fix them or is there a workaround?
line 434: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20).
line 555: 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).
line 972: 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).
line 990: 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).
line 1037: 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).
How do I fix them or is there a workaround?