8000 2 warnings with 'strncat' calls · Issue #11 · Cisco-Talos/file2pcap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

2 warnings with 'strncat' calls #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

7CE6

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
fxlb opened this issue Sep 11, 2024 · 0 comments
Open

2 warnings with 'strncat' calls #11

fxlb opened this issue Sep 11, 2024 · 0 comments

Comments

@fxlb
Copy link
fxlb commented Sep 11, 2024

Hello,
The warnings are:
(On Debian bookworm, gcc (Debian 12.2.0-14) 12.2.0)

helpers.c: In function 'transferFileBase64':
helpers.c:200:17: warning: 'strncat' specified bound 2 equals source length [-Wstringop-overflow=]
  200 |                 strncat(buffer, "\r\n", 2);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
helpers.c: In function 'transferFileUU':
helpers.c:255:17: warning: 'strncat' specified bound 1 equals source length [-Wstringop-overflow=]
  255 |                 strncat(buffer, "\n", strlen("\n"));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0