[Bug 1631504] [NEW] loadkeys segfaults with certain arguments in 16.10

Launchpad Bug Tracker 1631504 at bugs.launchpad.net
Thu Oct 13 20:39:04 UTC 2016


You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):

This can be reproduced as follows:

1) Switch to VT 1 (ctrl+alt+f1)
2) run: loadkeys garbage
3) loadkeys will segfault

The problem appears to be with the implicit declaration of xmalloc in loadkeys.c. It is resolved if
#include "xmalloc.h" is added to the top of that file (and in fact all the other source files in kbd that reference xmalloc include that file).

Interestingly xmalloc is resolved without include but the returned
pointer seems to get truncated. It doesn't do this if the source is
built with gcc 5.4 in 16.04 so maybe it has something to do with gcc 6.2
in 16.10.

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: kbd 2.0.3-2ubuntu2
ProcVersionSignature: Ubuntu 4.8.0-19.21-generic 4.8.0-rc8
Uname: Linux 4.8.0-19-generic x86_64
ApportVersion: 2.20.3-0ubuntu7
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Oct  7 15:27:58 2016
InstallationDate: Installed on 2016-10-06 (1 days ago)
InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Alpha amd64 (20161006)
SourcePackage: kbd
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: kbd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug patch yakkety
-- 
loadkeys segfaults with certain arguments in 16.10
https://bugs.launchpad.net/bugs/1631504
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list