[Fedora-i18n-bugs] [Bug 1543306] New: broken %postun scriptlet in ibus-libs package
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1543306
Bug ID: 1543306
Summary: broken %postun scriptlet in ibus-libs package
Product: Fedora
Version: 27
Component: ibus
Assignee: tfujiwar(a)redhat.com
Reporter: mattias.ellert(a)physics.uu.se
QA Contact: extras-qa(a)fedoraproject.org
CC: i18n-bugs(a)lists.fedoraproject.org,
shawn.p.huang(a)gmail.com, tfujiwar(a)redhat.com
Description of problem:
When updating the ibus-libs package the postun scriptlet fails and emits an
error:
Non-fatal POSTUN scriptlet failur in rpm package ibus-libs
Version-Release number of selected component (if applicable):
ibus-libs-1.5.17-5.fc27.x86_64 (and others)
How reproducible:
Always.
Steps to Reproduce:
1. Update ibus-libs (using a method that doesn's silently hide errors)
2. See the error message
Actual results:
You can see that there is an issue using the command
$ echo ---- ; rpm -q --scripts ibus-libs; echo ----
----
postinstall program: /sbin/ldconfig
postuninstall scriptlet (using /sbin/ldconfig):
# FIXME: no version number
----
Expected results:
What you expect is the following:
$ echo ---- ; rpm -q --scripts -p
results_ibus/1.5.17/7.fc28/ibus-libs-1.5.17-7.fc27.x86_64.rpm ; echo ----
----
postinstall program: /sbin/ldconfig
postuninstall program: /sbin/ldconfig
----
I.e. The %postun script should be empty, like the %post script is. The FIXME
comment in the specfile is currently placed in the %postun scriptlet, and
/sbin/ldconfig does not understand it and throws an error.
Additional info:
This can be fixed by moving the FIXME comment into the %files section:
diff --git a/ibus.spec b/ibus.spec
index b0ac4ca..8ff21f7 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -346,8 +346,8 @@ dconf update || :
%ldconfig_scriptlets libs
-# FIXME: no version number
%files -f %{name}10.lang
+# FIXME: no version number
%doc AUTHORS COPYING README
%dir %{_datadir}/ibus/
%{_bindir}/ibus
The rpm used in the "Expected results" section was built with this change.
--
You are receiving this mail because:
You are on the CC list for the bug.
6 years, 1 month
[Fedora-i18n-bugs] [Bug 1549478] buffer overflow in uim
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1549478
--- Comment #3 from Akira TAGOH <tagoh(a)redhat.com> ---
(In reply to Jakub Jelinek from comment #1)
> Guess either you need to pass sizeof(buffer_for_converter)-1 to
> mconv_rebind_buffer, so that there is a place for the terminating '\0', or
> that plus bump buffer_for_converter size to 4096+1.
Indeed that is. you're right. thanks for explanation and suggestion.
--
You are receiving this mail because:
You are on the CC list for the bug.
6 years, 1 month
[Fedora-i18n-bugs] [Bug 1549478] buffer overflow in uim
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1549478
Jakub Jelinek <jakub(a)redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |i18n-bugs(a)lists.fedoraproje
| |ct.org, tagoh(a)redhat.com
Component|gcc |uim
Assignee|jakub(a)redhat.com |tagoh(a)redhat.com
Summary|gcc optimizations causes a |buffer overflow in uim
|segfault on building uim |
|package |
--- Comment #1 from Jakub Jelinek <jakub(a)redhat.com> ---
There is nothing weird on it, you overflow an buffer. Before filing bugs try
to your package with -fsanitize=address and/or -fsanitize=undefined.
static MConverter *converter;
static char buffer_for_converter[4096]; /* Currently, if preedit strings or
candidate strings over this buffer
size, they will simply ignore. */
...
static char *
convert_mtext2str(MText *mtext)
{
mconv_rebind_buffer(converter, (unsigned char *)buffer_for_converter,
sizeof(buffer_for_converter));
mconv_encode(converter, mtext);
buffer_for_converter[converter->nbytes] = 0;
return uim_strdup(buffer_for_converter);
}
So, you call first mconv_rebind_buffer which sets internal->bufsize to 4096,
then try to encode something. If it is really long, it will encode at most
that bufsize characters and set converter->nbytes to 4096. Then in
buffer_for_converter[converter->nbytes] = 0;
you overflow the buffer and because converter pointer happens to be adjacent
with -O2 right after it, you overwrite the last significant byte of it.
Guess either you need to pass sizeof(buffer_for_converter)-1 to
mconv_rebind_buffer, so that there is a place for the terminating '\0', or that
plus bump buffer_for_converter size to 4096+1.
--
You are receiving this mail because:
You are on the CC list for the bug.
6 years, 1 month
[Fedora-i18n-bugs] [Bug 1540401] New: xkeyboard-config-2.23 is available
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1540401
Bug ID: 1540401
Summary: xkeyboard-config-2.23 is available
Product: Fedora
Version: rawhide
Component: xkeyboard-config
Keywords: FutureFeature, Triaged
Assignee: peter.hutterer(a)redhat.com
Reporter: upstream-release-monitoring(a)fedoraproject.org
QA Contact: extras-qa(a)fedoraproject.org
CC: ajax(a)redhat.com, alexl(a)redhat.com,
caillon+fedoraproject(a)gmail.com,
i18n-bugs(a)lists.fedoraproject.org,
john.j5live(a)gmail.com, mbarnes(a)fastmail.com,
negativo17(a)gmail.com, peter.hutterer(a)redhat.com,
rhughes(a)redhat.com, rstrode(a)redhat.com,
sandmann(a)redhat.com
Latest upstream release: 2.23
Current version/release in rawhide: 2.22-1.fc28
URL: http://xorg.freedesktop.org/archive/individual/data/xkeyboard-config/
Please consult the package updates policy before you issue an update to a
stable branch: https://fedoraproject.org/wiki/Updates_Policy
More information about the service that created this bug can be found at:
https://fedoraproject.org/wiki/Upstream_release_monitoring
Please keep in mind that with any upstream change, there may also be packaging
changes that need to be made. Specifically, please remember that it is your
responsibility to review the new version to ensure that the licensing is still
correct and that no non-free or legally problematic items have been added
upstream.
Based on the information from anitya:
https://release-monitoring.org/project/5191/
--
You are receiving this mail because:
You are on the CC list for the bug.
6 years, 1 month