diff options
author | jrummell <jrummell@chromium.org> | 2015-04-22 11:25:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-22 18:26:30 +0000 |
commit | 15426e1f537cb15a28396c6ba70644fd90605218 (patch) | |
tree | 223aa201301f23eece3ad2cec2121ae95201d10c /media/cdm/cenc_utils.h | |
parent | ab42594ec3070953971f43b384f38f3c2b65d4ea (diff) | |
download | chromium_src-15426e1f537cb15a28396c6ba70644fd90605218.zip chromium_src-15426e1f537cb15a28396c6ba70644fd90605218.tar.gz chromium_src-15426e1f537cb15a28396c6ba70644fd90605218.tar.bz2 |
Sanitize init_data before passing it on
BUG=456397
TEST=media_unittests and EME layout tests pass
Review URL: https://codereview.chromium.org/1096203004
Cr-Commit-Position: refs/heads/master@{#326342}
Diffstat (limited to 'media/cdm/cenc_utils.h')
-rw-r--r-- | media/cdm/cenc_utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/cdm/cenc_utils.h b/media/cdm/cenc_utils.h index c659742..6fd9952 100644 --- a/media/cdm/cenc_utils.h +++ b/media/cdm/cenc_utils.h @@ -12,6 +12,10 @@ namespace media { +// Validate that |input| is a set of concatenated 'pssh' boxes and the sizes +// match. Returns true if |input| looks valid, false otherwise. +MEDIA_EXPORT bool ValidatePsshInput(const uint8* input, size_t input_length); + // Gets the Key Ids from a 'pssh' box for the Common SystemID among one or // more concatenated 'pssh' boxes. If |input| looks valid, then true is // returned and |key_ids| is updated to contain the values found. Otherwise |