Ray Essick
fe18947966
Merge "DO NOT MERGE Consume bytes for sps with unsupported resolution" into mnc-dev
...
am: 7973e3adee
Change-Id: I280d506882c7d8b796248897549fb5b9747671d7
2017-11-03 20:30:44 +00:00
Ray Essick
7973e3adee
Merge "DO NOT MERGE Consume bytes for sps with unsupported resolution" into mnc-dev
2017-11-03 20:24:47 +00:00
Naveen Kumar P
ef0772c3ca
Merge "Fix slice address zero for not first slice in pic" into lmp-dev am: 114aff802c am: ad70f9c5e2
...
am: 20a7f0e1b4
Change-Id: I22705396bf416b34f1ad10767d638d47d5354c60
2017-11-03 19:10:37 +00:00
Naveen Kumar P
20a7f0e1b4
Merge "Fix slice address zero for not first slice in pic" into lmp-dev am: 114aff802c
...
am: ad70f9c5e2
Change-Id: I5c9a3536b5b280cb2c8119e5749605f7bf159319
2017-11-03 19:07:17 +00:00
Wei Jia
9d4d24e860
Merge "Fix prev slice incomplete check" into lmp-dev am: 94c2e4ad73 am: 7ec4d76835
...
am: c0b7da5b7c
Change-Id: I587e690d8cfcb96abbd19561df262eeff5f0469c
2017-11-03 19:07:04 +00:00
Wei Jia
c0b7da5b7c
Merge "Fix prev slice incomplete check" into lmp-dev am: 94c2e4ad73
...
am: 7ec4d76835
Change-Id: I121231f5af58fd985a88e1aa14f32aa878fde903
2017-11-03 19:05:33 +00:00
Naveen Kumar P
ad70f9c5e2
Merge "Fix slice address zero for not first slice in pic" into lmp-dev
...
am: 114aff802c
Change-Id: I6a33a254a2db3695b5a3cb05cee19c06285fc053
2017-11-03 19:05:33 +00:00
Wei Jia
7ec4d76835
Merge "Fix prev slice incomplete check" into lmp-dev
...
am: 94c2e4ad73
Change-Id: I4792e9f0f6495bab0c9501201d9f52b381fc129c
2017-11-03 19:03:34 +00:00
TreeHugger Robot
114aff802c
Merge "Fix slice address zero for not first slice in pic" into lmp-dev
2017-11-03 19:01:28 +00:00
TreeHugger Robot
59d29f3a42
Merge "Decoder: Handle ps_codec_obj memory allocation failure gracefully" into mnc-dr-dev
2017-11-03 19:00:16 +00:00
Wei Jia
94c2e4ad73
Merge "Fix prev slice incomplete check" into lmp-dev
2017-11-03 18:59:15 +00:00
Naveen Kumar P
6284aca74a
Fix incomplete frame error am: ee0e003a0f am: 9fb45f7a68
...
am: e3d3a992af
Change-Id: Ibac9789daedaa37b9bfbec9c4fb67d66a648012a
2017-11-03 18:57:32 +00:00
Naveen Kumar P
e3d3a992af
Fix incomplete frame error am: ee0e003a0f
...
am: 9fb45f7a68
Change-Id: I16e5f80a1ff8b88f8042b3cf3ff5563a5f80b865
2017-11-03 18:55:07 +00:00
Naveen Kumar P
9fb45f7a68
Fix incomplete frame error
...
am: ee0e003a0f
Change-Id: I43d586f52753cfb210be26dd343e274fe292fd55
2017-11-03 18:52:32 +00:00
Naveen Kumar P
ee0e003a0f
Fix incomplete frame error
...
Bug: 63522067
Bug: 64380403
Test: ran POC before/after
Change-Id: If22f2ed8936e0ead9fcfa64ddde99e85c10cecd2
2017-11-01 12:42:30 -07:00
Harish Mahendrakar
a966e2a65d
Decoder: Handle ps_codec_obj memory allocation failure gracefully
...
If memory allocation for ps_codec_obj fails, return gracefully
with an error code. All other allocation failures are
handled correctly.
Bug: 68299873
Test: before/after with always-failing malloc
Change-Id: I5e6c07b147b13df81e65476851662d4b55d33b83
2017-10-31 16:31:31 -07:00
Naveen Kumar P
ed3f6bb877
Fix slice address zero for not first slice in pic
...
The parameter slice address is parsed only slices that are not
first slice in the pic and the value cannot be zero.
Bug: 64380202
Test: ran PoC on master
Change-Id: Ic21c40cf67c916806113d2425790a27cb658b5d2
2017-10-31 14:57:18 -07:00
Marco Nelissen
92c2b4cc1a
Merge "Fix tile index buf alloc size" into mnc-dr-dev
2017-10-31 17:50:36 +00:00
Naveen Kumar P
9c24714e25
Fix prev slice incomplete check
...
Bug: 64552185
Bug: 65034175
Move the decision to signal missing ctbs as skipped ctbs of
previous slice to the end of current slice hdr parsing to
ensure no error in slice hdr parsing.
Change-Id: Ia33b4be31dad6225b04e7b20b9000059c87941c4
(cherry picked from commit 74f35f191022c06863dacd33a3651a33be3ef08d)
2017-10-30 15:40:08 -07:00
Naveen Kumar P
44b8f080fb
Merge "Set error skip ctbs as multiple 8x8 pus" into lmp-dev am: 6587d735fa am: 27e8401a7c
...
am: 862bb09d83
Change-Id: I5de0426f1e6ab5ae6611f32881196290260b775f
2017-10-20 19:56:40 +00:00
Naveen Kumar P
862bb09d83
Merge "Set error skip ctbs as multiple 8x8 pus" into lmp-dev am: 6587d735fa
...
am: 27e8401a7c
Change-Id: Ia7712ae3fa31002fbde12b2491d42c8532555a26
2017-10-20 19:54:10 +00:00
Naveen Kumar P
27e8401a7c
Merge "Set error skip ctbs as multiple 8x8 pus" into lmp-dev
...
am: 6587d735fa
Change-Id: Iec9ffae348591115bb7d21c93acbdbb69adbf703
2017-10-20 19:52:10 +00:00
TreeHugger Robot
6587d735fa
Merge "Set error skip ctbs as multiple 8x8 pus" into lmp-dev
2017-10-20 19:44:51 +00:00
Robert Shih
556af11a03
Merge "Added an out of bound check on u4_num_bufs in input argument" into lmp-dev am: 4b5c23e393 am: b49adbf304
...
am: 4ff7f4bfee
Change-Id: Idd6ee6f7ce322c025864b954cabe098776718ca7
2017-10-18 18:43:28 +00:00
Naveen Kumar P
1ee4f5d773
Fix tile index buf alloc size
...
Bug: 64893226
Change-Id: Iec02f6a7b65804cc3daadf6e29d57a7ad955d517
(cherry picked from commit 6921d875c1 )
2017-10-18 18:29:40 +00:00
Ray Essick
425ee10a01
Alloc extra bytes for bits buf for parse optimzation am: 2ae456c2a3
...
am: 512ea0e115
Change-Id: I5c6c1817e1033548246f37a66b0c4f273526eec5
2017-10-18 18:12:48 +00:00
Robert Shih
4ff7f4bfee
Merge "Added an out of bound check on u4_num_bufs in input argument" into lmp-dev am: 4b5c23e393
...
am: b49adbf304
Change-Id: I8798964119251ab311a0884ccdc326f7fba11871
2017-10-18 18:12:17 +00:00
Marco Nelissen
8db8414337
Merge "Fix tile index buf alloc size" into lmp-dev am: 4b9053c15c
...
am: b1d1fad9f6
Change-Id: I71d054275736897960883d16b3fe6cb1807b39a4
2017-10-18 18:11:58 +00:00
Ray Essick
056e988115
DO NOT MERGE Consume bytes for sps with unsupported resolution
...
For an sps with unsupported resolution, consume the bytes.
Otherwise application will feed the same sps again
and again.
Bug: 65718319
Test: ran POC before/after
Change-Id: Ic81990030f7e6afd8cf3ebd387c5be7443b148b9
Merged-In: I02295e813f37a963d7f6216bb8a7e86648485681
2017-10-18 17:17:23 +00:00
Ray Essick
512ea0e115
Alloc extra bytes for bits buf for parse optimzation
...
am: 2ae456c2a3
Change-Id: I433259a5e1a0f17be601b126c558abde80c8aa80
2017-10-10 02:58:15 +00:00
Naveen Kumar P
2b9fb0c207
Set error skip ctbs as multiple 8x8 pus
...
Bug: 65123471
This is required for incomplete ctbs at the frame
boundaries
Change-Id: I7e41a3ac2f6e35a929ba4ff3ca4cfcc859a7b867
2017-10-05 13:56:13 -07:00
Ray Essick
2ae456c2a3
Alloc extra bytes for bits buf for parse optimzation
...
Without this extra allocation, if a nal fills entire bits
buffer, there will be out of bound memory read access.
Bug: 65719872
Test: ran poc before/after on ASAN of master
Change-Id: I9f4fca0739db84db023b1252c1365bfd13355541
Merged-In: I1c36821505bdc4fe6c23f30a02ab2fb0fb657946
2017-10-03 16:04:33 -07:00
Naveen Kumar P
4cf597a518
Alloc extra bytes for bits buf for parse optimzation
...
Without this extra allocation, if a nal fills entire bits
buffer, there will be out of bound memory read access.
Bug: 65719872
Test: ran poc before/after on ASAN of master
Change-Id: I1c36821505bdc4fe6c23f30a02ab2fb0fb657946
2017-10-03 15:30:34 -07:00
Robert Shih
b49adbf304
Merge "Added an out of bound check on u4_num_bufs in input argument" into lmp-dev
...
am: 4b5c23e393
Change-Id: I8608961e4cbf7c7d2d73711a7b7ce6cf2332aa8c
2017-09-13 20:36:55 +00:00
Robert Shih
4b5c23e393
Merge "Added an out of bound check on u4_num_bufs in input argument" into lmp-dev
2017-09-13 20:15:11 +00:00
Marco Nelissen
b1d1fad9f6
Merge "Fix tile index buf alloc size" into lmp-dev
...
am: 4b9053c15c
Change-Id: If94227bf83556964569337503bae0b75feca7991
2017-09-13 05:51:33 +00:00
Marco Nelissen
4b9053c15c
Merge "Fix tile index buf alloc size" into lmp-dev
2017-09-13 05:00:56 +00:00
Harish Mahendrakar
8221313d58
Added an out of bound check on u4_num_bufs in input argument
...
ps_dec_ip->s_out_buffer.u4_num_bufs was missing out of bound checks
Bug: 35430570
Change-Id: Ibbf9891a885f69e208107725e34e7217147b891e
2017-09-12 13:13:26 -07:00
Naveen Kumar P
578f676115
Fix heap buffer overflow
...
am: f6ba5eae65
Change-Id: I6e8bcefce5e4a7df8cdc5519734b8c0f4a9c1ce6
2017-09-11 23:50:27 +00:00
Naveen Kumar P
334f896e61
Fix tile index buf alloc size
...
Bug: 64893226
2017-09-11 15:40:03 -07:00
Naveen Kumar P
5aee254181
RESTRICT AUTOMERGE Fix heap buffer overflow
...
Test:
- Push multi_rec.hevc (in the bug thread) to the device
- Build:
mmm external/libhevc
- Run on device:
hevcdec --input multi_res.hevc --num_frames -1 --num_cores 2
Bug: 62815506
Merged-In: I7e0828c9a9bb1e9997c379544ea5f4eb3556417d
Change-Id: I7e0828c9a9bb1e9997c379544ea5f4eb3556417d
2017-09-08 21:15:45 -07:00
Naveen Kumar P
f6ba5eae65
Fix heap buffer overflow
...
Test:
- Push multi_rec.hevc (in the bug thread) to the device
- Build:
mmm external/libhevc
- Run on device:
hevcdec --input multi_res.hevc --num_frames -1 --num_cores 2
Bug: 62815506
Merged-In: I7e0828c9a9bb1e9997c379544ea5f4eb3556417d
Change-Id: I7e0828c9a9bb1e9997c379544ea5f4eb3556417d
2017-09-08 21:14:34 -07:00
Naveen Kumar P
5109aa40af
Merge "Fix slice decrement for skipped slices" into mnc-dev
...
am: d743ed23ff
Change-Id: If31bb64ed4da5a773cc32b5a33e93ea85acda776
2017-08-03 21:08:48 +00:00
TreeHugger Robot
d743ed23ff
Merge "Fix slice decrement for skipped slices" into mnc-dev
2017-08-03 20:58:10 +00:00
Harish Mahendrakar
107cdf1c41
Merge "Ensure CTB size > 16 for clips with tiles and width/height >= 4096" into lmp-dev am: db15dd7102 am: 419fd4b745 am: 8e6cf47bf1
...
am: 61f3fbfe13
Change-Id: I640c619d9c69774e716ce43cb77b1bc1bb8869e7
2017-08-03 18:59:37 +00:00
Harish Mahendrakar
61f3fbfe13
Merge "Ensure CTB size > 16 for clips with tiles and width/height >= 4096" into lmp-dev am: db15dd7102 am: 419fd4b745
...
am: 8e6cf47bf1
Change-Id: I893a9a91df23625bf2cbd6ce2d226b682c773130
2017-08-03 18:53:37 +00:00
Harish Mahendrakar
419fd4b745
Merge "Ensure CTB size > 16 for clips with tiles and width/height >= 4096" into lmp-dev
...
am: db15dd7102
Change-Id: Ie3b65dfa829d06fbdeb6590cf1458dc886ab6126
2017-08-03 18:40:37 +00:00
TreeHugger Robot
db15dd7102
Merge "Ensure CTB size > 16 for clips with tiles and width/height >= 4096" into lmp-dev
2017-08-03 18:28:53 +00:00
Harish Mahendrakar
248e72c7a8
Ensure CTB size > 16 for clips with tiles and width/height >= 4096
...
For clips with tiles and dimensions >= 4096,
CTB size of 16 can result in tile position > 255.
This is not supported by the decoder
Bug: 37930177
Test: ran poc w/o crashing
Change-Id: I2f223a124c4ea9bfd98343343fd010d80a5dd8bd
2017-07-24 12:33:29 -07:00
Naveen Kumar P
272f2c23c8
Fix slice decrement for skipped slices
...
Test: run the poc with and without the patch
Bug: 63045918
Change-Id: I27804d42c55480c25303d1a5dbb43b1d86d7fa94
2017-07-17 22:17:09 +00:00