Page 1 of 1

custom extension's signature at the end

Posted: 27 Jun 2017, 07:42
by elaci0
Hello there and thanks for the great piece of software!
I was wondering if you plan to add a signature check that "starts" from the end of the file to work in couple with the signature at its beginning.
e.g., I'm trying to recover some SVG files from inkscape, some files seems to be ok some others don't and looking at the recovered files I see that a lot of other stuff is "added" after the "/<svg>" which closes a file.

a.

Re: custom extension's signature at the end

Posted: 27 Jun 2017, 18:33
by cgrenier
Can you check the end of the recovered file ? I think there is a </svg> tag at the end.
PhotoRec truncate the file after the last </svg> tag.

Re: custom extension's signature at the end

Posted: 28 Jun 2017, 13:51
by elaci0
I'm afraid it's not skipping the rest of the "file":

Code: Select all

  <g
     inkscape:groupmode="layer"
     id="layer3"
     inkscape:label="Drawing Area" />
</svg>
^@^@^@^@   <------ tons of binary data like this but other too

..and I've many recovered files like this. I guess (still have to try) that in this case cutting the file by hand may help with the recovery.
this is why I've asked if there could be the possibility to "cut" the file at the ending signature.
with regards,
a.

Re: custom extension's signature at the end

Posted: 29 Jun 2017, 18:34
by cgrenier
Can you provide a recovered svg file ?
Thanks

Re: custom extension's signature at the end

Posted: 11 Jul 2017, 08:10
by elaci0
Sorry, I was away.
Do you mean a tipical SVG working file or something "bad" recovered by Photorec? I'm afraid the latter might be very huge but you can get it from here:
http://psy.cns.sissa.it/DOWN/f142623648.svg.gz

thanks a lot!