Package: kobodeluxe Version: 0.5.1-7 Severity: important Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? * What exactly did you do (or not do) that was effective (or ineffective)? * What was the outcome of this action? * What outcome did you expect instead? *** End of the template - remove these template lines *** I recently launched my favorite game and unfortunately he made a segmentation fault at startup . After rebuilding the package whith the -g flag, i found that the problem was in the file kobodeluxe-0.5.1/sound/a_midicon.c My patch is very simple... I swap the lines 123 and 124 in file kobodeluxe-0.5.1/sound/a_midicon.c -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386, armhf, armel Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Init: systemd (via /run/systemd/system) Versions of packages kobodeluxe depends on: ii kobodeluxe-data 0.5.1-7 ii libc6 2.22-4 ii libgcc1 1:5.3.1-13 ii libsdl-image1.2 1.2.12-5+b5 ii libsdl1.2debian 1.2.15+dfsg1-4 ii libstdc++6 5.3.1-13 kobodeluxe recommends no packages. kobodeluxe suggests no packages. -- no debconf information
--- kobodeluxe-0.5.1.orig/sound/a_midicon.c +++ kobodeluxe-0.5.1/sound/a_midicon.c @@ -120,8 +120,8 @@ static inline void __press(unsigned ch, { m[ch].next[key] = -1; m[ch].prev[key] = m[ch].last; - m[ch].next[m[ch].last] = (char)key; m[ch].last = (char)key; + m[ch].next[m[ch].last] = (char)key; }