... | ... |
@@ -1847,6 +1847,12 @@ int cli_scanhwp3(cli_ctx *ctx) |
1847 | 1847 |
|
1848 | 1848 |
offset += HWP3_DOCSUMMARY_SIZE; |
1849 | 1849 |
|
1850 |
+ /* password-protected document - cannot parse */ |
|
1851 |
+ if (docinfo.di_passwd) { |
|
1852 |
+ cli_dbgmsg("HWP3.x: password-protected file, skip parsing\n"); |
|
1853 |
+ return CL_SUCCESS; |
|
1854 |
+ } |
|
1855 |
+ |
|
1850 | 1856 |
if (docinfo.di_infoblksize) { |
1851 | 1857 |
/* OPTIONAL TODO: HANDLE OPTIONAL INFORMATION BLOCK #0's FOR PRECLASS */ |
1852 | 1858 |
offset += docinfo.di_infoblksize; |