Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231535
b: refs/heads/master
c: e7ee11f
h: refs/heads/master
i:
  231533: 703081d
  231531: 454cd23
  231527: 02580d1
  231519: c6c6122
v: v3
  • Loading branch information
Phillip Lougher committed Jan 13, 2011
1 parent 48b8feb commit 91e8634
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 170cf02165272dfe026eba183563bad973ca4f05
refs/heads/master: e7ee11f0ecd587caed0063c5f68ca20fef699f32
5 changes: 5 additions & 0 deletions trunk/fs/squashfs/zlib_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ static int zlib_uncompress(struct squashfs_sb_info *msblk, void **buffer,
goto release_mutex;
}

if (k < b) {
ERROR("zlib_uncompress error, data remaining\n");
goto release_mutex;
}

length = stream->total_out;
mutex_unlock(&msblk->read_data_mutex);
return length;
Expand Down

0 comments on commit 91e8634

Please sign in to comment.