Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37835919
en ru br
Репозитории ALT
5.1: 3.2.0.7-alt0.M51.1
4.1: 3.0.0.10-alt1.M41.1
4.0: 2.4.1.7-alt0.M40.1
3.0: 1.1.5-alt1
www.altlinux.org/Changes

Группа :: Офис
Пакет: openoffice.org

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

Патч: OOo_1.1.4-doublefree-1.patch
Скачать


Submitted By: DJ Lucas <dj_At_linuxfromscratch_DOT_org>
Date: 2005-04-27
Origin: http://www.openoffice.org/issues/show_bug.cgi?id=40937
Initial Package Version: 1.1.4
Description: Fixes double free issues with glibc-2.3.4
Upstream Status: Applied
$LastChangedBy: bdubbs $
$Date: 2005-08-01 13:29:19 -0600 (Mon, 01 Aug 2005) $
--- openoffice.org.orig/rsc/source/rscpp/cpp1.c	2005-01-17 20:21:38.000000000 +0000
+++ openoffice.org/rsc/source/rscpp/cpp1.c	2005-01-18 20:45:45.000000000 +0000
@@ -421,9 +421,6 @@
 #endif
         if( pCppOut != stdout && pCppOut != stderr )
             fclose( pCppOut );
-        if( pCppIn != stdin )
-            fclose( pCppIn  );
-
 
         if (errors > 0) {
             fprintf(stderr, (errors == 1)
--- openoffice.org.orig/rsc/source/rscpp/cpp6.c	2005-01-17 20:21:39.000000000 +0000
+++ openoffice.org/rsc/source/rscpp/cpp6.c	2005-01-18 20:46:15.000000000 +0000
@@ -878,7 +878,8 @@
                     goto newline;               /* process the line     */
                 }
                 else {
-                    fclose(file->fp);           /* Close finished file  */
+		    if( file->fp != stdin )
+                        fclose(file->fp);           /* Close finished file  */
                     if ((infile = file->parent) != NULL) {
                         /*
                          * There is an "ungotten" newline in the current
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin