php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #77586
Patch issue-77586-buff-overflow revision 2019-02-13 05:17 UTC by bishop@php.net
Patch issue-77586-buff-overflow.patch revision 2019-02-11 21:16 UTC by bishop@php.net
Patch phar_tar_writeheaders.patch revision 2019-02-08 11:16 UTC by jordy at simplyhacker dot com

Patch phar_tar_writeheaders.patch for PHAR related Bug #77586

Patch version 2019-02-08 11:16 UTC

Return to Bug #77586 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: jordy@simplyhacker.com

--- tar.c	2019-02-08 12:13:02.000000000 +0100
+++ tar_patched.c	2019-02-08 12:13:23.000000000 +0100
@@ -764,7 +764,7 @@
 	header.typeflag = entry->tar_type;
 
 	if (entry->link) {
-		strncpy(header.linkname, entry->link, strlen(entry->link));
+		strncpy(header.linkname, entry->link, strlen(header->linkname));
 	}
 
 	strncpy(header.magic, "ustar", sizeof("ustar")-1);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 04:01:30 2024 UTC