Commit d7b31ddf authored by Varun Khaneja's avatar Varun Khaneja Committed by Commit Bot

Do not try to decrypt password protected RARs

R=jialiul

Bug: 855202
Change-Id: I100381590c3d87b5aeae8711abe2a38c8a28d8a5
Reviewed-on: https://chromium-review.googlesource.com/1110949
Commit-Queue: Jialiu Lin <jialiul@chromium.org>
Reviewed-by: default avatarJialiu Lin <jialiul@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570549}
parent 4a458a69
......@@ -142,7 +142,8 @@ size_t Archive::ReadHeader15()
if (Decrypt)
{
#ifdef RAR_NOCRYPT // For rarext.dll and unrar_nocrypt.dll.
#if defined(RAR_NOCRYPT) || \
defined(CHROMIUM_UNRAR) // For rarext.dll and unrar_nocrypt.dll.
return 0;
#else
RequestArcPassword();
......@@ -582,7 +583,7 @@ size_t Archive::ReadHeader50()
if (Decrypt)
{
#if defined(RAR_NOCRYPT)
#if defined(RAR_NOCRYPT) || defined(CHROMIUM_UNRAR)
return 0;
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment