Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37816721
en ru br
ALT Linux repos
S:1.5.7-alt2
5.0: 1.5.4-alt1
4.1: 1.5.3-alt1
4.0: 1.3-alt0.1

Group :: Text tools
RPM: foremost

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: foremost-1.5.7-format-security.patch
Download


diff --git a/extract.c b/extract.c
index 30bdf54..9639117 100755
--- a/extract.c
+++ b/extract.c
@@ -2110,7 +2110,6 @@ unsigned char *extract_exe(f_state *s, u_int64_t c_offset, unsigned char *founda
 	int				i = 0;
 	time_t			compile_time = 0;
 	struct tm		*ret_time;
-	char			comment[32];
 	char			ascii_time[32];
 
 	if (buflen < 100)
@@ -2145,8 +2144,7 @@ unsigned char *extract_exe(f_state *s, u_int64_t c_offset, unsigned char *founda
 			ret_time->tm_sec);
 	chop(ascii_time);
 
-	sprintf(comment, ascii_time);
-	strcat(needle->comment, comment);
+	strcat(needle->comment, ascii_time);
 	exe_char = htos(&foundat[22], FOREMOST_LITTLE_ENDIAN);
 	if (exe_char & 0x2000)
 		{
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin