Debian Bug report logs - #603868
Don't try to unpack empty associated strings

version graph

Package: wv2; Maintainer for wv2 is Olly Betts <>;

Reported by: Olly Betts <>

Date: Wed, 17 Nov 2010 23:57:01 UTC

Severity: normal

Tags: patch, upstream

Found in version 0.4.2.dfsg.1-1

Fixed in version wv2/0.4.2.dfsg.1-1.1

Done: Olly Betts <>

Bug is archived. No further changes may be made.

Forwarded to

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to,, Debian Qt/KDE Maintainers <>:
Bug#603868; Package wv2. (Wed, 17 Nov 2010 23:57:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Olly Betts <>:
New Bug report received and forwarded. Copy sent to, Debian Qt/KDE Maintainers <>. (Wed, 17 Nov 2010 23:57:04 GMT) Full text and rfc822 format available.

Message #5 received at (full text, mbox):

From: Olly Betts <>
To: Debian Bug Tracking System <>
Subject: Don't try to unpack empty associated strings
Date: Thu, 18 Nov 2010 12:55:43 +1300
[Message part 1 (text/plain, inline)]
Package: wv2
Version: 0.4.2.dfsg.1-1
Severity: normal
Tags: patch

If the length of the associated strings section is 0, libwv2 currently tries to
unpack it anyway, which tries to interpret whatever is after that point in the
files as a table of strings.  In some cases (such as the attached example
document) this results in garbage values for the metadata.

I've attached a patch to fix this by special casing when this size is 0.

I created the test document from scratch - I'm happy to license it under the
same licence as libwv2 if someone wants to use it in a testsuite.

[wv2-fix-handling-empty-associatedstrings.patch (text/x-diff, attachment)]
[test97.doc (application/msword, attachment)]
[signature.asc (application/pgp-signature, inline)]

Set Bug forwarded-to-address to ''. Request was from Eckhart Wörner <> to (Mon, 06 Dec 2010 02:09:03 GMT) Full text and rfc822 format available.

Added tag(s) upstream. Request was from Eckhart Wörner <> to (Mon, 06 Dec 2010 02:09:04 GMT) Full text and rfc822 format available.

Reply sent to Olly Betts <>:
You have taken responsibility. (Wed, 30 Nov 2011 12:51:15 GMT) Full text and rfc822 format available.

Notification sent to Olly Betts <>:
Bug acknowledged by developer. (Wed, 30 Nov 2011 12:51:19 GMT) Full text and rfc822 format available.

Message #14 received at (full text, mbox):

From: Olly Betts <>
Subject: Bug#603868: fixed in wv2 0.4.2.dfsg.1-1.1
Date: Wed, 30 Nov 2011 12:48:19 +0000
Source: wv2
Source-Version: 0.4.2.dfsg.1-1.1

We believe that the bug you reported is fixed in the latest version of
wv2, which is due to be installed in the Debian FTP archive:

  to main/w/wv2/libwv2-4_0.4.2.dfsg.1-1.1_amd64.deb
  to main/w/wv2/libwv2-dev_0.4.2.dfsg.1-1.1_amd64.deb
  to main/w/wv2/wv2_0.4.2.dfsg.1-1.1.debian.tar.gz
  to main/w/wv2/wv2_0.4.2.dfsg.1-1.1.dsc

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Olly Betts <> (supplier of updated wv2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing

Hash: SHA256

Format: 1.8
Date: Wed, 30 Nov 2011 12:04:22 +0000
Source: wv2
Binary: libwv2-4 libwv2-dev
Architecture: source amd64
Version: 0.4.2.dfsg.1-1.1
Distribution: sid
Urgency: low
Maintainer: Debian Qt/KDE Maintainers <>
Changed-By: Olly Betts <>
 libwv2-4   - library for accessing Microsoft Word documents
 libwv2-dev - development files for Microsoft Word access library
Closes: 556686 603868 603871
 wv2 (0.4.2.dfsg.1-1.1) unstable; urgency=low
   * Non-maintainer upload.
   * Add patch fix-ftbfs-with-gold.patch to fix FTBFS with binutils-gold.
     (Closes: #556686)
   * Add patch fix-handling-empty-associatedstrings.patch to fix handling of
     .doc files with an empty associated strings section. (Closes: #603868)
   * Build with debugging messages disabled. (Closes: #603871)
   * Drop leading article from short description.
   * Actually run the testsuite, don't just build it (needs new patch
   * "Standards-Version: 3.9.2":
     + Include the BSD licence in debian/copyright rather than referring to
 42bbc29a4137f8468f1ef49cabb61e430cba09dd 1949 wv2_0.4.2.dfsg.1-1.1.dsc
 79180154a68144a84c7c0659b1f666f9ecf53d67 7272 wv2_0.4.2.dfsg.1-1.1.debian.tar.gz
 5511b85b407c33fd65e9b62bd4d52590586708ec 421824 libwv2-4_0.4.2.dfsg.1-1.1_amd64.deb
 1e40b53311e3772909054cf35ea99d4f6361c32c 101632 libwv2-dev_0.4.2.dfsg.1-1.1_amd64.deb
 d5847e45989fdfc10ccec2004cadd6ad8df4f2c41f2b2ff36598125bc66679d0 1949 wv2_0.4.2.dfsg.1-1.1.dsc
 046b68a2252cce23ab5990e63bcf197b4614eb675c0b2479e5767a54d22bcdb0 7272 wv2_0.4.2.dfsg.1-1.1.debian.tar.gz
 d0c4efd6618f2fde576c3fb8cce8b51fcf6d5077497724121e68b7255b8dea82 421824 libwv2-4_0.4.2.dfsg.1-1.1_amd64.deb
 e502be6723f8f30c5389fc0fbd094506ce3a06d73793109e5a4e14d70927267b 101632 libwv2-dev_0.4.2.dfsg.1-1.1_amd64.deb
 49603ee218cb8338068a46d728d6becc 1949 libs optional wv2_0.4.2.dfsg.1-1.1.dsc
 efc4ce6d9fb64adaf9453f95d7606a9b 7272 libs optional wv2_0.4.2.dfsg.1-1.1.debian.tar.gz
 db48c5098ae23c42c35b7fb49d6a099a 421824 libs optional libwv2-4_0.4.2.dfsg.1-1.1_amd64.deb
 797d478b9e2546c3c538c846c1ad03af 101632 libdevel optional libwv2-dev_0.4.2.dfsg.1-1.1_amd64.deb

Version: GnuPG v1.4.10 (GNU/Linux)


Bug archived. Request was from Debbugs Internal Request <> to (Sun, 08 Jan 2012 07:37:14 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Sat Apr 19 05:48:11 2014; Machine Name:

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.