lib/libc/stdio/fread.c:133:10: runtime error: applying zero offset to null pointer
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 40806 Build 37695: arc lint + arc unit
Event Timeline
Comment Actions
Good.
Please also take a look at NetBSD's change 1.23, "Avoid undefined behavior in fread(3)".
Comment Actions
Ah nice, that avoids the branch inside the loop. Should I apply the NetBSD change instead?
Comment Actions
I think so ... I haven't had time to test the change .. plus they undid it and then redid it in other commits. :-).