Fix an infinite loop in the bzip2 method.

Reference:	http://bugzilla.gnome.org/show_bug.cgi?id=322652
This commit is contained in:
Jean-Yves Lefort 2005-11-28 14:26:45 +00:00
parent 2be3dfadde
commit e40f588f68
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=149782
4 changed files with 24 additions and 2 deletions

View file

@ -8,7 +8,7 @@
PORTNAME= gnomevfs2
PORTVERSION= 2.12.1.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-vfs/2.12

View file

@ -0,0 +1,11 @@
--- modules/bzip2-method.c.orig Wed Apr 13 21:58:54 2005
+++ modules/bzip2-method.c Mon Nov 28 15:09:59 2005
@@ -435,7 +435,7 @@
if (bzip2_handle->last_bz_result != BZ_OK) {
if (bzip2_handle->last_bz_result == BZ_STREAM_END)
- return GNOME_VFS_OK;
+ return GNOME_VFS_ERROR_EOF;
else
return result_from_bz_result (bzip2_handle->last_bz_result);
} else if (bzip2_handle->last_vfs_result != GNOME_VFS_OK) {

View file

@ -8,7 +8,7 @@
PORTNAME= gnomevfs2
PORTVERSION= 2.12.1.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-vfs/2.12

View file

@ -0,0 +1,11 @@
--- modules/bzip2-method.c.orig Wed Apr 13 21:58:54 2005
+++ modules/bzip2-method.c Mon Nov 28 15:09:59 2005
@@ -435,7 +435,7 @@
if (bzip2_handle->last_bz_result != BZ_OK) {
if (bzip2_handle->last_bz_result == BZ_STREAM_END)
- return GNOME_VFS_OK;
+ return GNOME_VFS_ERROR_EOF;
else
return result_from_bz_result (bzip2_handle->last_bz_result);
} else if (bzip2_handle->last_vfs_result != GNOME_VFS_OK) {