Home GnuPG

w32: Fix corrupted string output.
52e1f2e131b4Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

w32: Fix corrupted string output.

* src/w32-gettext.c (get_string): Pass the nul of the utf-8 string to
the conversion function but keep TRANSLEN without the nul.

The bug first occurred on Windows 8 but it is a real thing. Assuming
that a malloced buffer is zeroed out is not solid assumptions ;-)

Details

Provenance
wernerAuthored on Jul 15 2013, 3:31 PM
Parents
rE659389fb01a9: Remove trailing spaces from w32-gettext.c.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rE52e1f2e131b4: w32: Fix corrupted string output. (authored by Werner Koch <wk@gnupg.org>).Jul 15 2013, 3:31 PM