[patch] decompress_bunzip2: off by one in get_next_block()

2014-10-22 Thread Dan Carpenter
"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

[patch] decompress_bunzip2: off by one in get_next_block()

2014-10-22 Thread Dan Carpenter
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.