From d5a13afe9265463a497db40d8c66a8a736a86bc2 Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Mon, 19 Jun 2017 16:11:19 -0400 Subject: Fix signedness of height in BMP decoder Change-Id: I8a17739538a9ecd63d713007550177579c0b72f0 Reviewed-on: https://pdfium-review.googlesource.com/6731 Commit-Queue: dsinclair Reviewed-by: dsinclair --- core/fxcodec/codec/ccodec_bmpmodule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxcodec/codec') diff --git a/core/fxcodec/codec/ccodec_bmpmodule.cpp b/core/fxcodec/codec/ccodec_bmpmodule.cpp index 370919634a..1c8112498c 100644 --- a/core/fxcodec/codec/ccodec_bmpmodule.cpp +++ b/core/fxcodec/codec/ccodec_bmpmodule.cpp @@ -51,7 +51,7 @@ int32_t CCodec_BmpModule::ReadHeader(Context* pContext, *width = ctx->m_Bmp.width; *height = ctx->m_Bmp.height; - *tb_flag = false; + *tb_flag = ctx->m_Bmp.imgTB_flag; *components = ctx->m_Bmp.components; *pal_num = ctx->m_Bmp.pal_num; *pal_pp = ctx->m_Bmp.pal_ptr; -- cgit v1.2.3