Summary: | app-editors/emacs fails to compile with format-security | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Emacs project <emacs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 259417 | ||
Attachments: | emacs-23.4-r11:20140604-153935.log |
Description
Agostino Sarubbo
![]() Created attachment 378264 [details]
emacs-23.4-r11:20140604-153935.log
build log
this bug is valid only for emacs:18 and emacs:23 I didn't test the masked versions. emacs:24 is unaffected Fixed in emacs-23.4-r11. I cannot reproduce the bug with emacs-18.59-r10, but that version won't work with hardened kernel anyway. (We'd have to backport http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=blob;f=emacs/23.4/10_all_paxctl.patch;hb=61a1389068f52dc841d1cb291538d6f620ef9af2 and http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=blob;f=emacs/23.4/15_all_pax-xattr.patch;hb=f7e6317411b1453aa4876c69985c7a21e9186ced to emacs-18.59, for which I haven't found the time, so far.) BTW, this was pretty much a false positive. The warning occurs in the following function in movemail.c which is a simple wrapper around fprintf: void error (s1, s2, s3) char *s1, *s2, *s3; { fprintf (stderr, "movemail: "); if (s3) fprintf (stderr, s1, s2, s3); else if (s2) fprintf (stderr, s1, s2); else fprintf (stderr, s1); fprintf (stderr, "\n"); } Since error is always called with a literal as first argument, we had no real problem here. |