Menu

#108 Data backup does not work on i386 and creates always a 50 byte file

v1.0 (example)
open
nobody
None
5
2016-02-04
2016-02-02
No

Osmo's backup feature works as intended on amd64/x86_64 systems but it does not work on i386 and probably other 32bit architectures.

How to reproduce:

  1. Compile Osmo for i386 or use the official Debian package (version 0.2.12 and 0.2.14 are affected)
  2. Start Osmo and create a random calendar entry. Save everything.
  3. Use the backup feature. Osmo creates a backup file which size is always 50 byte.
  4. Try to restore the backup. All data is gone.

I can rule out that it has something to do with custom build flags. I have built Osmo without any hardening flags on i386 but the backup feature is still broken.

This is Debian bug: https://bugs.debian.org/813414

Discussion

  • Maxim Gordienko

    Maxim Gordienko - 2016-02-04

    Hi Markus,

    Thank you for reporting the issue.

    It seems there is a problem with libarchive and the way it handles file sizes on i386.
    I applied a temporary workaround to Osmo. The version in trunk handles backups on i386 correctly.

    Thanks again for the heads-up!

    Max

     
  • Markus Koschany

    Markus Koschany - 2016-02-04

    Many thanks for the patch.

     

Log in to post a comment.