BAN-AI-Multics / ban-telnet

ban-telnet: TELNET client and server (for UNIX)
https://github.com/BAN-AI-Multics/ban-telnet
GNU General Public License v3.0
2 stars 0 forks source link

(SH-2059) Use of variable in `printf` format string #18

Closed johnsonjh closed 3 years ago

johnsonjh commented 3 years ago

Description

Problematic code: bash printf "Hello, $NAME\n" #### Preferred code: bash printf "Hello, %s\n" "$NAME" printf interprets escape sequences and format specifiers in the format string. If variables are included, any escape sequences or format specifiers in the data will be interpreted too, where you might have wanted …

Occurrences

There are 12 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2059/occurrences/

repo-ranger[bot] commented 3 years ago

⚠️ This has been marked to be closed in 7 days.

repo-ranger[bot] commented 3 years ago

⚠️ This has been marked to be closed in 7 days.

johnsonjh commented 3 years ago

Ignored / intentional