Fix an infinite loop in the bzip2 method.
Reference: http://bugzilla.gnome.org/show_bug.cgi?id=322652
This commit is contained in:
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
|
@ -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
|
||||
|
|
11
devel/gnome-vfs/files/patch-modules_bzip2-method.c
Normal file
11
devel/gnome-vfs/files/patch-modules_bzip2-method.c
Normal 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) {
|
|
@ -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
|
||||
|
|
11
devel/gnomevfs2/files/patch-modules_bzip2-method.c
Normal file
11
devel/gnomevfs2/files/patch-modules_bzip2-method.c
Normal 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) {
|
Loading…
Reference in a new issue