Closed Bug 1430188 Opened 7 years ago Closed 7 years ago

{i,}wt_matrix_ref tables in libaom are enormous and not read-only

Categories

(Core :: Audio/Video, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: froydnj, Assigned: rillian)

Details

Attachments

(1 file)

Noticed this while looking at sizes of libxul symbols for something else today: 0x34400 OBJECT LOCAL DEFAULT 28 iwt_matrix_ref 0x34400 OBJECT LOCAL DEFAULT 28 wt_matrix_ref That is, both of these tables are ~200KB, and they are stored in the writable data section. They are initialized in the source code, so I think the intent is that they're read-only, but since they're lacking the `const` qualifier, they are unsharable between processes. Thus we have ~400KB of private data in each process that really shouldn't be there. I can't tell whether they're actually writable or not; it looks like they shouldn't be, but AFAICT the sole references are from unused functions (?). Ralph, can you look into this and/or get this fixed upstream? Upstream at least looks like they're still writable: https://aomedia.googlesource.com/aom/+/master/av1/common/quant_common.c#582 https://aomedia.googlesource.com/aom/+/master/av1/common/quant_common.c#7350
Flags: needinfo?(giles)
Thanks for the report. Patch submitted as https://aomedia-review.googlesource.com/#/c/aom/+/41822
Assignee: nobody → giles
Flags: needinfo?(giles)
Thank you!
Attachment #8942711 - Flags: review?(kinetik) → review+
Pushed by rgiles@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d88cb52f392d av1: Mark AOM_QM matricies const. r=kinetik.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: