c2pa-rs

A fork of https://github.com/contentauth/c2pa-rs/
git clone git://archive.git.mtrnord.blog/mtrnords-photography-manager/c2pa-rs.git
Log | Files | Refs | README

commit ecf462e61c1a5bcaf8475b43764c37399ccea08d
parent fb561a5116febc22890def50052205751cd4ce86
Author: mauricefisher64 <92736594+mauricefisher64@users.noreply.github.com>
Date:   Wed, 15 Jun 2022 12:26:20 -0400

Fix bug in verify_from_buffer (#44)

Co-authored-by: Eric Scouten <scouten@adobe.com>
Diffstat:
Msdk/src/store.rs | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sdk/src/store.rs b/sdk/src/store.rs @@ -1444,7 +1444,9 @@ impl Store { let xmp_copy = xmp_opt.clone(); - Store::verify_store(self, xmp_opt, buf_reader.get_ref(), validation_log)?; + let buf = buf_reader.into_inner(); + + Store::verify_store(self, xmp_opt, buf, validation_log)?; // set the provenance if there is xmp otherwise it will default to active manifest if let Some(xmp) = xmp_copy {