fcorbelli / zpaqfranz

Deduplicating archiver with encryption and paranoid-level tests. Swiss army knife for the serious backup and disaster recovery manager. Ransomware neutralizer. Win/Linux/Unix
MIT License
275 stars 25 forks source link

buffer overflow after compiling with FORTIFY_SOURCE=3 #106

Closed bastiple closed 4 months ago

bastiple commented 5 months ago

Hi, Archlinux has recently started building packages with -D_FORTIFY_SOURCE=3, for example: c++ -O2 -D_FORTIFY_SOURCE=3 -Dunix zpaqfranz.cpp -pthread. This results in zpaqfranz crashing with the error: *** buffer overflow detected ***: terminated.

The crash occurs when showing a multi-page help screen, e.g. zpaqfranz h full or zpaqfranz h a. I am compiling with gcc 14.1.1

fcorbelli commented 4 months ago

Thank you very much

Arch is rather "a strange beast", I'll check later today

fcorbelli commented 4 months ago

Can you please check the attached pre-release? Thanks 59_7p.zip

bastiple commented 4 months ago

That has fixed the error for me.

Thanks!