Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 594444 - app-text/recode-3.6_p20-r1: possible buffer overflow when the input filename is too long
Summary: app-text/recode-3.6_p20-r1: possible buffer overflow when the input filename ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Shell Tools project
URL: https://github.com/pinard/Recode/pull/3
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-09-20 00:41 UTC by Coacher
Modified: 2019-04-15 22:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2016-09-20 00:41:31 UTC
Hello.

Source code says:

char output_name[200]; /* FIXME: dangerous limit */
[...]
input_name = argv[optind];
[...]
strcpy (output_name, input_name);

This can't be good. Gentoo patchset doesn't cover this.

Please fix.