Skip to content
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.

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

Coverity report potential string overflow in transport_udp.cpp #1735

Closed
danielwangksu opened this issue Jul 2, 2019 · 2 comments · Fixed by #1771
Closed

Coverity report potential string overflow in transport_udp.cpp #1735

danielwangksu opened this issue Jul 2, 2019 · 2 comments · Fixed by #1771

Comments

@danielwangksu
Copy link
Contributor

danielwangksu commented Jul 2, 2019

Using Coverity static analysis tool report a potential string overflow in the following code:

(10) Event fixed_size_dest: You might overrun the 128-character fixed-size string "namebuf" by copying the return value of "inet_ntoa" without checking the length.

strcpy(namebuf, inet_ntoa(sin->sin_addr));

(12) Event fixed_size_dest: | You might overrun the 128-character fixed-size string "namebuf" by copying the return value of "inet_ntoa" without checking the length.

strcpy(namebuf, inet_ntoa(sin->sin_addr));

(15) Event fixed_size_dest: | You might overrun the 128-character fixed-size string "namebuf" by copying the return value of "inet_ntoa" without checking the length.

strcpy(namebuf, inet_ntoa(address->sin_addr));

@jspricke
Copy link
Member

This just got a public CVE:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-13566
can we release new versions?

@vmayoral
Copy link

vmayoral commented Nov 28, 2019

Connected to aliasrobotics/RVD#918

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

Successfully merging a pull request may close this issue.

3 participants