| 8ff95057 | 16-Oct-2023 |
John Baldwin <[email protected]> |
bsdinstall partedit: Use snprintf instead of sprintf for error messages
When generating a message for a dialog box into a static buffer, use snprintf instead of sprintf to avoid buffer overflows.
R
bsdinstall partedit: Use snprintf instead of sprintf for error messages
When generating a message for a dialog box into a static buffer, use snprintf instead of sprintf to avoid buffer overflows.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D42240
(cherry picked from commit 6e8bf24073a1867c4b21bd84438a8b01ce91d82d)
show more ...
|
| 10415f63 | 16-Oct-2023 |
John Baldwin <[email protected]> |
bsdinstall partedit: Use asprintf to build wrapper command for newfs
Don't abuse the message[] static buffer used elsewhere for error messages to generate the command that actually newfs's each file
bsdinstall partedit: Use asprintf to build wrapper command for newfs
Don't abuse the message[] static buffer used elsewhere for error messages to generate the command that actually newfs's each filesystem. Use asprintf to a more aptly-named 'char *command' variable to construct the string instead. This avoids potential bugs from truncation of the command string.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D42239
(cherry picked from commit a8676bf367b099dcc97ff61031cbf4ceb5e37899)
show more ...
|
| bb049096 | 16-Oct-2023 |
John Baldwin <[email protected]> |
bsdinstall partedit: Replace malloc + sprintf with asprintf
This avoids potential bugs with the length passed to malloc not matching the string written via sprintf.
Reviewed by: emaste Differential
bsdinstall partedit: Replace malloc + sprintf with asprintf
This avoids potential bugs with the length passed to malloc not matching the string written via sprintf.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D42238
(cherry picked from commit 51749e05e96eb07134a38984a8c06608b20f07ea)
show more ...
|
| 147585b4 | 13-May-2022 |
Brad Davis <[email protected]> |
bsdinstall: allow whitelabeling the installer
Override OSNAME to change the name of the OS in the installer.
This is a first step, the shell changes will be separate.
Reviewed by: allanjude Appro
bsdinstall: allow whitelabeling the installer
Override OSNAME to change the name of the OS in the installer.
This is a first step, the shell changes will be separate.
Reviewed by: allanjude Approved by: allanjude Differential Revision: https://reviews.freebsd.org/D34878 Sponsored by: Rubicon Communications, LLC ("Netgate")
show more ...
|