coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible vulnerability in csplit


From: Kapil Anand
Subject: Possible vulnerability in csplit
Date: Mon, 6 May 2013 00:41:35 -0400

Hi, 

I work in information flow analysis of programs and my analysis gave a possible warning with respect to format string vulnerability in csplit (Version 8.17). 

In csplit, there is a global variable called "suffix" which is initialized through a command line argument in function main

suffix = optarg

Next, this variable is used as a format argument in a sprintf call in function make_filename.

sprintf (filename_space + strlen (prefix), suffix, num)

Our analysis flagged this behavior. 

However, we are not sure whether Coreutil developers are aware of this behaviour. This might very well be a false positive. We just wanted to confirm our analysis.

Any response in this regard will be appreciated.

Thanks

Regards,
Kapil

reply via email to

[Prev in Thread] Current Thread [Next in Thread]