Package: jwm Version: 2.1.0+svn579-2 Severity: normal File: /usr/bin/jwm In .jwmrc, if an attribute contains an "&" or similar entity then the parse of subsequent attributes doesn't work properly.
For example the .jwmrc below provokes a warning JWM: warning: /home/gg/.jwmrc[4]: invalid tag and there's no icon on the "Term & inal" menu entry, only on the second "Terminal" one. I expected both would show their respective icon. Nosing around src/lex.c TokenNode(), it seems that ap->value = ReadAttributeValue(line + x, fileName, &lineNumber); if(ap->value) { x += strlen(ap->value); } returns ap->value as the string with entities collapsed and that therefore strlen(ap->value) is not the length to step "x" ahead, leaving "x" at the wrong place on looping for further attributes. I noticed this in the "Iceape Mail & Newsgroups" menu entry generated from /usr/share/menu/iceape.
<?xml version="1.0"?> <JWM> <RootMenu height="15" onroot="12"> <Program label="Term & inal" icon="/usr/share/pixmaps/xterm-color_32x32.xpm">x-terminal-emulator</Program> <Program label="Terminal" icon="/usr/share/pixmaps/xterm-color_32x32.xpm">x-terminal-emulator</Program> <Separator/> <Restart label="Restart" icon="restart.png"/> <Exit label="Exit" confirm="true" icon="quit.png"/> </RootMenu> </JWM>
-- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (990, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core) Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages jwm depends on: ii eterm [x-terminal-emulator] 0.9.6-1 ii gnome-terminal [x-terminal-emulator] 3.10.1-1 ii libc6 2.17-97 ii libfribidi0 0.19.6-1 ii libpng12-0 1.2.49-5 ii libx11-6 2:1.6.2-1 ii libxext6 2:1.3.2-1 ii libxft2 2.3.1-1 ii libxinerama1 2:1.1.3-1 ii libxpm4 1:3.5.10-1 ii libxrender1 1:0.9.8-1 ii mrxvt [x-terminal-emulator] 0.5.4-1.1 ii mrxvt-mini [x-terminal-emulator] 0.5.4-1.1 ii rxvt [x-terminal-emulator] 1:2.7.10-5 ii xterm [x-terminal-emulator] 300-1 jwm recommends no packages. Versions of packages jwm suggests: ii menu 2.1.46 ii x11-apps 7.7+1 -- Configuration Files: -- no debconf information