diff options
author | Lei Zhang <thestig@chromium.org> | 2018-09-21 15:34:45 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-09-21 15:34:45 +0000 |
commit | 8590a98297c5a56e63efc63931c1b3998160e049 (patch) | |
tree | 351a3765f746d10a0eb2c6f880864b1603a01e97 /core/fpdfapi/page/cpdf_image.h | |
parent | 9d784c291714b703b16185e69860a3797de85b6c (diff) | |
download | pdfium-8590a98297c5a56e63efc63931c1b3998160e049.tar.xz |
Validate more image values in CPDF_DIBBase.
Change-Id: Ia5f72e6397ee959d897a945c4069f47c494b5511
Reviewed-on: https://pdfium-review.googlesource.com/42870
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_image.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_image.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/fpdfapi/page/cpdf_image.h b/core/fpdfapi/page/cpdf_image.h index f7752213f1..b4636711fd 100644 --- a/core/fpdfapi/page/cpdf_image.h +++ b/core/fpdfapi/page/cpdf_image.h @@ -28,6 +28,9 @@ class CPDF_Image final : public Retainable { template <typename T, typename... Args> friend RetainPtr<T> pdfium::MakeRetain(Args&&... args); + static bool IsValidJpegComponent(int32_t comps); + static bool IsValidJpegBitsPerComponent(int32_t bpc); + void ConvertStreamToIndirectObject(); CPDF_Dictionary* GetDict() const; |