Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc97: Decrypt the `Data' stream as well. #22

Conversation

057a3dd61f99517a3afea0051a49cb27994f94d
Copy link
Contributor

According to the official documentation [1], the Data stream must be
encrypted and thus, decrypted as well. I tried with a doc file with
lots of pictures, when the Data stream is not decrypted, complaint
about corrupted data is made, and none of the pictures could be
viewed, on the other hand everything works fine if it's fully decrypted.

[1] https://msdn.microsoft.com/en-us/library/dd945648(v=office.12).aspx
https://msdn.microsoft.com/en-us/library/dd946845(v=office.12).aspx

@codecov-io
Copy link

Codecov Report

Merging #22 into master will decrease coverage by 0.58%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
- Coverage   41.52%   40.94%   -0.59%     
==========================================
  Files          12       12              
  Lines         773      784      +11     
==========================================
  Hits          321      321              
- Misses        452      463      +11
Impacted Files Coverage Δ
msoffcrypto/format/doc97.py 30.43% <0%> (-1.53%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 574105c...7171d5d. Read the comment docs.

According to the official documentation [1], the `Data' stream must be
encrypted and thus, decrypted as well. I tried with a doc file with
lots of pictures, when the `Data' stream is not decrypted, complaint
about corrupted data is made, and none of the pictures could be
viewed, on the other hand everything works fine if it's fully decrypted.

[1] https://msdn.microsoft.com/en-us/library/dd945648(v=office.12).aspx
    https://msdn.microsoft.com/en-us/library/dd946845(v=office.12).aspx
@nolze nolze added this to the Release v4.7.0 milestone Feb 1, 2019
@nolze nolze merged commit fd7c2ba into nolze:master Feb 1, 2019
@nolze
Copy link
Owner

nolze commented Feb 1, 2019

Thank you! We haven't tested that case. Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants