[rygel/rygel-0-14] core: Fix content range check
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-14] core: Fix content range check
- Date: Tue, 12 Jun 2012 21:02:17 +0000 (UTC)
commit 82a9f7a3402bfcabefaa3a482f0d17db00b8a4eb
Author: Jens Georg <mail jensge org>
Date: Mon May 14 23:09:35 2012 +0200
core: Fix content range check
https://bugzilla.gnome.org/show_bug.cgi?id=676037
src/rygel/rygel-http-seek.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-http-seek.vala b/src/rygel/rygel-http-seek.vala
index 1518e63..a857734 100644
--- a/src/rygel/rygel-http-seek.vala
+++ b/src/rygel/rygel-http-seek.vala
@@ -47,11 +47,11 @@ internal abstract class Rygel.HTTPSeek : GLib.Object {
this.length = length;
this.total_length = total_length;
- if (start < 0 || start > total_length) {
+ if (start < 0 || start >= total_length) {
throw new HTTPSeekError.OUT_OF_RANGE (_("Out Of Range Start '%ld'"),
start);
}
- if (stop < 0 || stop > total_length) {
+ if (stop < 0 || stop >= total_length) {
throw new HTTPSeekError.OUT_OF_RANGE (_("Out Of Range Stop '%ld'"),
stop);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]