janjongboom / janpatch

JojoDiff Alternative Patch library - portable C library for memory-efficient binary patching
Other
134 stars 25 forks source link

jp_final_flush() bug when at the page boundary #13

Closed thendrickson closed 4 years ago

thendrickson commented 4 years ago

in jp_final_flush(), if (page != buffer->current_page) then there is a bug where the 2nd page flush messes things up by seeking back by one page length and the final length of the binary is then wrong.

thendrickson commented 4 years ago

https://github.com/janjongboom/janpatch/pull/14

janjongboom commented 4 years ago

Fixed in #14.