RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1643752 - [fix available] There is a illegal address access at function WP6ContentListener::defineTable in software libwpd.
Summary: [fix available] There is a illegal address access at function WP6ContentListe...
Status: CLOSED DUPLICATE of bug 1650535
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libwpd
Version: 7.7-Alt
Hardware: All
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Caolan McNamara
QA Contact: Desktop QE
Depends On:
Blocks: 1644276
TreeView+ depends on / blocked
Reported: 2018-10-28 12:18 UTC by shuitao gan
Modified: 2018-11-16 15:45 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1644276 (view as bug list)
Last Closed: 2018-11-16 15:45:17 UTC
Target Upstream Version:

Attachments (Terms of Use)
Trigger by "./wpd2html POC0" (1.49 KB, application/x-rar)
2018-10-28 12:18 UTC, shuitao gan
no flags Details

Description shuitao gan 2018-10-28 12:18:17 UTC
Created attachment 1498271 [details]
Trigger by "./wpd2html POC0"

version: 0.10.2

There is a illegal address access at function WP6ContentListener::defineTable in software libwpd. 


The asan debug is as follows:

$./wpd2html POC0

==59723==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000518308 sp 0x7ffc1b342aa0 bp 0x7ffc1b343170 T0)
==59723==WARNING: Trying to symbolize code, but external symbolizer is not initialized!
    #0 0x518307 (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x518307)
    #1 0x503b89 (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x503b89)
    #2 0x5341f6 (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x5341f6)
    #3 0x54a0d5 (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x54a0d5)
    #4 0x51dbdf (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x51dbdf)
    #5 0x55e43e (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x55e43e)
    #6 0x55b783 (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x55b783)
    #7 0x558713 (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x558713)
    #8 0x51f166 (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x51f166)
    #9 0x553791 (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x553791)
    #10 0x50b0b4 (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x50b0b4)
    #11 0x53406e (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x53406e)
    #12 0x5355d9 (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x5355d9)
    #13 0x54e7be (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x54e7be)
    #14 0x47deaa (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x47deaa)
    #15 0x7fc17ee57a3f (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)
    #16 0x47d558 (/home/company/real_sanitize/poc_check/wpd/wpd2html_w+0x47d558)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ??:0 ??

$./wpd2html POC0
Segmentation fault

The GDB debugging information is as follow

(gdb) set args POC0
(gdb) r

Program received signal SIGSEGV, Segmentation fault.
std::unique_ptr<WP6ContentParsingState, std::default_delete<WP6ContentParsingState> >::operator-> (this=<optimized out>) at ./WPXTable.h:89
89			return (*m_tableList)[i];
(gdb) bt
#0  std::unique_ptr<WP6ContentParsingState, std::default_delete<WP6ContentParsingState> >::operator-> (this=<optimized out>) at ./WPXTable.h:89
#1  WP6ContentListener::defineTable (this=0x7fffffffda40, 
    position=<optimized out>, leftOffset=21333) at WP6ContentListener.cpp:1314
#2  0x00007ffff7b859ec in WP6Parser::parseDocument (input=0x615f50, encryption=
    0x0, listener=0x7fffffffda40) at WP6Parser.cpp:149
#3  0x00007ffff7b80762 in WP6ContentListener::_handleSubDocument (
    this=0x7fffffffda40, subDocument=0x615f30, 
    subDocumentType=WPX_SUBDOCUMENT_HEADER_FOOTER, tableList=..., 
    nextTableIndice=<optimized out>) at WP6ContentListener.cpp:1783
#4  0x00007ffff7b8d71c in WPXContentListener::handleSubDocument (
    this=0x7fffffffda50, subDocument=0x615f30, 
    subDocumentType=WPX_SUBDOCUMENT_HEADER_FOOTER, tableList=..., 
    nextTableIndice=0) at WPXContentListener.cpp:1226
#5  0x00007ffff7b8cfbe in WPXContentListener::_openPageSpan (
    this=0x7fffffffda50) at WPXContentListener.cpp:415
#6  0x00007ffff7b8c7ed in WPXContentListener::_openSection (
    this=0x7fffffffda50) at WPXContentListener.cpp:198
#7  0x00007ffff7b80a7b in WP6ContentListener::_handleListChange (
    this=0x7fffffffda40) at WP6ContentListener.cpp:1888
#8  0x00007ffff7b8bea9 in WPXContentListener::_openSpan (this=0x7fffffffda50)
    at WPXContentListener.cpp:797
#9  0x00007ffff7b7dbb5 in WP6ContentListener::insertCharacter (
---Type <return> to continue, or q <return> to quit---
    this=0x7fffffffda40, character=<optimized out>)
    at WP6ContentListener.cpp:423
#10 0x00007ffff7b85a3f in WP6Parser::parseDocument (input=<optimized out>, 
    encryption=<optimized out>, listener=<optimized out>) at WP6Parser.cpp:138
#11 0x00007ffff7b85dd6 in WP6Parser::parse (this=<optimized out>, 
    input=<optimized out>, encryption=<optimized out>, this=<optimized out>, 
    input=<optimized out>, encryption=<optimized out>, 
    listener=<optimized out>) at WP6Parser.cpp:79
#12 WP6Parser::parse (this=<optimized out>, documentInterface=<optimized out>)
    at WP6Parser.cpp:225
#13 0x00007ffff7b8b449 in libwpd::WPDocument::parse (input=<optimized out>, 
    textInterface=0x0, password=<optimized out>) at WPDocument.cpp:336
#14 0x0000000000401032 in main (argc=<optimized out>, argv=<optimized out>)
    at wpd2html.cpp:116

Comment 2 Caolan McNamara 2018-10-30 11:21:09 UTC
I have a fix for this

Comment 3 Fedora Update System 2018-11-04 06:51:35 UTC
libwpd-0.10.2-4.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2018-11-09 05:25:26 UTC
libwpd-0.10.2-4.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 Caolan McNamara 2018-11-16 15:45:17 UTC

*** This bug has been marked as a duplicate of bug 1650535 ***

Note You need to log in before you can comment on or make changes to this bug.