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 Not Applicable - Unit
Tests Not Applicable
Event Timeline
usr.sbin/tzsetup/tzsetup.c | ||
---|---|---|
515 ↗ | (On Diff #46306) | 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.