History

avcodec/dovi_rpudec: sanitize DM data before decoding

Some DM types do not fill the whole struct, so just clear it entirely before going filling the decoded values.

Niklas Haas committed 2 years ago

Commit 9824d151 parent 45f5f4d1 file · +1 −0Browse files

Unified · Split

libavcodec/dovi_rpudec.c+1−0
@@ -323,6 +323,7 @@ static int parse_ext_blocks(DOVIContext *s, GetBitContext *gb, int ver, · 322 unmodified lines
323323 dm = &ext->dm_dynamic[ext->num_dynamic++];
324324 }
325325
326+ memset(dm, 0, sizeof(*dm));
326327 dm->level = level;
327328 switch (ver) {
328329 case 1: ret = parse_ext_v1(s, gb, dm); break;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t