GNOME Bugzilla – Bug 730379
e-proxy: Eliminate use of undefined C behaviour
Last modified: 2014-11-03 16:05:19 UTC
Patch attached. Kittens saved. Unicorns and rainbows appear.
Created attachment 276778 [details] [review] e-proxy: Eliminate use of undefined C behaviour As much as this works fine in practice (because the function returns an error, so mask->s_addr should never be used), we should avoid undefined behaviour. Apparently it kills kittens. Coverity issue: #1214484
In practice, EProxy is no longer used. ESource also covers proxies now. But if it makes Coverity happy, I've no objection. Commit to master and evolution-data-server-3-12 branches.
Attachment 276778 [details] pushed as 486db77 - e-proxy: Eliminate use of undefined C behaviour
Created attachment 289778 [details] [review] e-proxy: Eliminate more use of undefined C behaviour The previous fix for this issue (commit 486db77e) did not eliminate the undefined behaviour in the case where width == 32. Fix that by explicitly handling it separately. Coverity issue: #1214484
Looking at recent Coverity logs, the original fix didn’t completely remove the undefined behaviour (my bad, sorry). The updated patch should do.
Review of attachment 289778 [details] [review]: Okay, please commit to sources. Thanks.
Pushed, thanks. Attachment 289778 [details] pushed as 81353fa - e-proxy: Eliminate more use of undefined C behaviour