Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37578896
en ru br
Репозитории ALT
S:2.7.6.0.27.7623-alt1
5.1: 2.5.9-alt3
4.1: 2.5.9-alt3
4.0: 2.5.9-alt3
3.0: 2.5.4-ipl10mdk
www.altlinux.org/Changes

Группа :: Работа с текстами
Пакет: patch

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: patch-2.5.4-sigsegv.patch
Скачать


Bug report: #14693
Reported by: Vincent Renardias <vincent@waw.com>
Patch: jdassen@wi.leidenuniv.nl (J.H.M.Dassen)
Since Version: 2.5-2
--- patch-2.5.orig/inp.c
+++ patch-2.5/inp.c
@@ -71,6 +71,14 @@
     }
 }
 
+void
+reset_scan_input_vars()
+{
+ using_plan_a = 1;
+ i_buffer = NULL;
+ i_ptr = NULL;
+}
+
 /* Construct the line index, somehow or other. */
 
 void
--- patch-2.5.orig/patch.c
+++ patch-2.5/patch.c
@@ -210,7 +210,10 @@
 
 	/* find out where all the lines are */
 	if (!skip_rest_of_patch)
-	    scan_input (inname);
+          scan_input (inname);
+        else
+          reset_scan_input_vars ();
+        
 
 	/* from here on, open no standard i/o files, because malloc */
 	/* might misfire and we can't catch it easily */
--- patch-2.5.orig/inp.h
+++ patch-2.5/inp.h
@@ -7,4 +7,5 @@
 char const *ifetch PARAMS ((LINENUM, int, size_t *));
 void get_input_file PARAMS ((char const *, char const *));
 void re_input PARAMS ((void));
+void reset_scan_input_vars PARAMS (());
 void scan_input PARAMS ((char *));
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin