In read_zones(), check if the file name actually fit in the buffer
and make sure it would fit with strlcpy().
Details
Details
run tzsetup
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 18591 Build 18282: arc lint + arc unit
Event Timeline
usr.sbin/tzsetup/tzsetup.c | ||
---|---|---|
515 | I think the intention was to copy until '/' (e.g. for Europe/Andorra, the goal is to copy "Europe"). Now I realized that 'filelen' is a poor name so I have revised the code to make it more clear. |
Comment Actions
Yes this is not intended as a security fix.
I think this is FreeBSD specific code and there was no upstream so we are probably the ultimate upstream.