diff options
author | Jens Georg <mail@jensge.org> | 2012-05-14 23:09:35 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2012-06-07 20:22:40 +0200 |
commit | 82a9f7a3402bfcabefaa3a482f0d17db00b8a4eb (patch) | |
tree | bb880a34ba7a0a21bc72226d2f2e1f921d8ed360 | |
parent | 1eeeded7bb794e78254c5d5e2b6cdc3ccd5d928a (diff) | |
download | rygel-82a9f7a3402bfcabefaa3a482f0d17db00b8a4eb.tar.gz |
core: Fix content range check
https://bugzilla.gnome.org/show_bug.cgi?id=676037
-rw-r--r-- | 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 1518e63f..a8577349 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); } |