| eb41613d | 08-Aug-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
indent: Fix buffer overflow
The function used to create a backup of the input before starting work used a static buffer and did not check that the file name it constructed did not overflow. Switch
indent: Fix buffer overflow
The function used to create a backup of the input before starting work used a static buffer and did not check that the file name it constructed did not overflow. Switch to using asprintf(), clean up the rest of the function, and update some comments that still referred to an earlier version of the code.
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: bnovkov Differential Revision: https://reviews.freebsd.org/D51796
show more ...
|
| b06c2eb7 | 01-Jun-2018 |
Piotr Pawel Stefaniak <pstef@FreeBSD.org> |
indent(1): don't add unneeded space to function pointer declarations
If the current token is an opening parenthesis, it's either a function call (or sizeof or offsetof) or a declaration. The former
indent(1): don't add unneeded space to function pointer declarations
If the current token is an opening parenthesis, it's either a function call (or sizeof or offsetof) or a declaration. The former doesn't need a space before the parenthesis.
show more ...
|