After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 369261 - GPG I/O code passes uninitialized data to poll()
GPG I/O code passes uninitialized data to poll()
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Mailer
unspecified
Other Linux
: Normal minor
: ---
Assigned To: Veerapuram Varadhan
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2006-11-02 06:15 UTC by Hans Petter Jansson
Modified: 2006-11-02 16:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix for uninitialized poll event structures. (624 bytes, patch)
2006-11-02 06:16 UTC, Hans Petter Jansson
accepted-commit_now Details | Review

Description Hans Petter Jansson 2006-11-02 06:15:40 UTC
There's code in camel-gpg-context.c that passes uninitialized data to poll() through its event structure. Since the associated fds are set to -1, this is likely just a theoretical problem, but valgrind complains about it and it may cause unpredictable platform-specific outcomes.

Attaching a patch.
Comment 1 Hans Petter Jansson 2006-11-02 06:16:15 UTC
Created attachment 75818 [details] [review]
Fix for uninitialized poll event structures.
Comment 2 Veerapuram Varadhan 2006-11-02 10:59:32 UTC
HPJ: Thanks for the patch and please go ahead and commit it to 2.14, 2.16 and HEAD branches.
Comment 3 Hans Petter Jansson 2006-11-02 16:22:53 UTC
Committed to 2.14, 2.16 and HEAD.