Cross Reference: yelp-09-page-infinitloop.diff
xref
: /
solaris-desktop
/
patches
/
yelp-09-page-infinitloop.diff
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
20857
N/A
diff -urN
yelp-2.30.2/src/yelp-page.c
yelp-2.30.2.new/src/yelp-page.c
20857
N/A
---
yelp-2.30.2/src/yelp-page.c
2010-08-04 03:41:38.000000000 +0800
20857
N/A
+++
yelp-2.30.2.new/src/yelp-page.c
2011-08-19 16:11:52.025509249 +0800
20857
N/A
@@ -104,10 +104,12 @@
20857
N/A
20857
N/A
if (page->content_offset == page->content_len) {
20857
N/A
/* FIXME: set the error */
20857
N/A
+ *bytes_read = 0;
20857
N/A
return G_IO_STATUS_EOF;
20857
N/A
}
20857
N/A
else if (page->content_offset > page->content_len) {
20857
N/A
/* FIXME: set the error */
20857
N/A
+ *bytes_read = 0;
20857
N/A
return G_IO_STATUS_ERROR;
20857
N/A
}
20857
N/A
else if (page->content_offset + real_count <= page->content_len) {