Dan Carpenter b5c8afe5be decompress_bunzip2: off by one in get_next_block()
"origPtr" is used as an offset into the bd->dbuf[] array.  That array is
allocated in start_bunzip() and has "bd->dbufSize" number of elements so
the test here should be >= instead of >.

Later we check "origPtr" again before using it as an offset so I don't
know if this bug can be triggered in real life.

Fixes: bc22c17e12c1 ('bzip2/lzma: library support for gzip, bzip2 and lzma decompression')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Alain Knaff <alain@knaff.lu>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-12-13 12:42:52 -08:00
..
2014-10-09 11:35:48 +03:00
2014-10-14 13:08:29 +11:00
2011-03-11 14:25:50 +00:00
2008-06-06 11:29:10 -07:00
2014-06-04 16:54:19 -07:00
2011-10-29 21:20:22 +02:00
2007-05-10 18:24:13 +02:00
2014-04-30 19:49:37 +01:00
2012-10-06 03:04:57 +09:00
2014-08-06 18:01:25 -07:00
2014-05-05 09:09:14 +02:00
2014-05-05 09:09:14 +02:00
2014-12-09 16:29:11 -05:00
2013-06-18 13:48:45 +02:00
2014-08-08 15:57:25 -07:00
2014-12-10 17:41:11 -08:00
2014-08-06 18:01:25 -07:00
2012-07-30 17:25:16 -07:00
2014-06-25 17:45:43 -07:00
2012-01-31 23:19:47 +02:00
2013-04-29 18:28:42 -07:00