Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656728 - dev-libs/libxml2-2.9.8: Broken decoding of larger documents with ICU
Summary: dev-libs/libxml2-2.9.8: Broken decoding of larger documents with ICU
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-28 05:33 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2019-02-20 03:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for dev-libs/libxml2::gentoo (libxml2.patch,2.90 KB, patch)
2018-05-28 07:04 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
Patch for dev-libs/libxml2::gentoo (libxml2.patch,2.90 KB, patch)
2018-05-28 07:06 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
Patch for dev-libs/libxml2::gentoo (libxml2.patch,9.08 KB, patch)
2018-06-21 04:08 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2018-05-28 05:33:23 UTC
Between 2.9.7 and 2.9.8:
https://gitlab.gnome.org/GNOME/libxml2/commit/6e6ae5daa6cd9640c9a83c1070896273e9b30d14
"""
commit 6e6ae5daa6cd9640c9a83c1070896273e9b30d14
Author:     Joel Hockey <joel.hockey@gmail.com>
AuthorDate: Tue Jan 2 21:47:35 2018 -0800
Commit:     Nick Wellnhofer <wellnhofer@aevum.de>
CommitDate: Mon Jan 8 19:57:53 2018 +0100

    Change calls to xmlCharEncInput to set flush false when not final call. Having flush incorrectly set to true causes errors for ICU.
"""


After 2.9.8:
https://gitlab.gnome.org/GNOME/libxml2/commit/7a1bd7f6497ac33a9023d556f6f47a48f01deac0
"""
commit 7a1bd7f6497ac33a9023d556f6f47a48f01deac0
Author:     Nick Wellnhofer <wellnhofer@aevum.de>
AuthorDate: Sat Mar 17 00:03:24 2018 +0100
Commit:     Nick Wellnhofer <wellnhofer@aevum.de>
CommitDate: Sat Mar 17 00:03:24 2018 +0100

    Revert "Change calls to xmlCharEncInput to set flush false"
    
    This reverts commit 6e6ae5daa6cd9640c9a83c1070896273e9b30d14 which
    broke decoding of larger documents with ICU.
    
    See https://bugs.chromium.org/p/chromium/issues/detail?id=820163
"""


I was able to reproduce problem mentioned in https://bugs.chromium.org/p/chromium/issues/detail?id=820163.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2018-05-28 07:04:50 UTC
Created attachment 533622 [details, diff]
Patch for dev-libs/libxml2::gentoo

This patch applies after patch for bug 653078.
Comment 2 Arfrever Frehtes Taifersar Arahesis 2018-05-28 07:06:34 UTC
Created attachment 533624 [details, diff]
Patch for dev-libs/libxml2::gentoo

This patch applies after patch for bug 653078.
Comment 3 Arfrever Frehtes Taifersar Arahesis 2018-06-21 04:08:45 UTC
Created attachment 536640 [details, diff]
Patch for dev-libs/libxml2::gentoo
Comment 4 Arfrever Frehtes Taifersar Arahesis 2019-02-20 03:41:23 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1791bae0e350d9afb39f4000c8f4172e1aaf6e8c

commit 1791bae0e350d9afb39f4000c8f4172e1aaf6e8c
Author:     Mart Raudsepp <leio@gentoo.org>
AuthorDate: 2019-02-17 16:46:08 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2019-02-17 16:46:08 +0000

    dev-libs/libxml2: bump to 2.9.9
    
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Mart Raudsepp <leio@gentoo.org>