ports/169837: editors/libreoffice calc module crashes libreoffice on startup

Jung-uk Kim jkim at FreeBSD.org
Fri Jul 13 20:43:18 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2012-07-13 16:30:12 -0400, Howard Goldstein wrote:
> Cool - that worked for me.   A a good and proper fix.

Please drop the attached file in /usr/ports/editors/libreoffice/files
and rebuild.  It is also available from here:

http://people.freebsd.org/~jkim/patch-desktop__unx__source__file_image_unx.c

Thanks,

Jung-uk Kim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAAiGQACgkQmlay1b9qnVOiKQCfUr9SiZK6zEws13KuXZJmzdz5
Bp0Anj9/wuzZvsqNxZy+0xFom+u+onN8
=xSeu
-----END PGP SIGNATURE-----
-------------- next part --------------
--- ./desktop/unx/source/file_image_unx.c.orig	2012-05-22 08:48:18.000000000 -0400
+++ ./desktop/unx/source/file_image_unx.c	2012-07-13 15:39:21.000000000 -0400
@@ -68,6 +68,12 @@
         goto cleanup_and_leave;
     }
 
+    if (st.st_size == 0)
+    {
+        result = EINVAL;
+        goto cleanup_and_leave;
+    }
+
     p = mmap (0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
     if (p == MAP_FAILED)
     {


More information about the freebsd-office mailing list