Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113128 - mail-filter/libspf2 not 64 bit safe in spf_interpret.c
Summary: mail-filter/libspf2 not 64 bit safe in spf_interpret.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High critical
Assignee: AMD64 Project
URL: http://www.gossamer-threads.com/lists...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-20 20:14 UTC by Olivier Hill
Modified: 2006-09-27 04:56 UTC (History)
2 users (show)

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


Attachments
files/patch-libspf2-1.2.5-amd64 (patch-libspf2-1.2.5-amd64,316 bytes, patch)
2005-11-20 20:16 UTC, Olivier Hill
Details | Diff
libspf2-1.2.5-r2.ebuild (libspf2-1.2.5-r2.ebuild,1.27 KB, text/plain)
2005-11-20 20:19 UTC, Olivier Hill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hill 2005-11-20 20:14:14 UTC
As reported by Carsten Koch-Mauthe, libspf2-1.2.5 is not 64 bit safe.

This can cause Exim to segfault if it was configured to use spf.

You can see the complete report at:
http://www.gossamer-threads.com/lists/spf/devel/24280?do=post_view_threaded

The solution is to simply declare the buflen variable as size_t instead of int.

I have created a patch and will try to attach it to the bug report.

Reproducible: Always
Steps to Reproduce:
emerge libspf
USE="spf" emerge exim

Start Exim and wait for some emails to come by.
Actual Results:  
Look at dmesg, you should see the following:
exim[11307]: segfault at 0000000000616000 rip 00002aaaabe25a73 rsp
00007fffffbffea8 error 6
Comment 1 Olivier Hill 2005-11-20 20:16:11 UTC
Created attachment 73276 [details, diff]
files/patch-libspf2-1.2.5-amd64
Comment 2 Olivier Hill 2005-11-20 20:19:44 UTC
Created attachment 73277 [details]
libspf2-1.2.5-r2.ebuild
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-08-01 10:03:31 UTC
Sending this amd64 way, been sitting here for ages and it concerns mainly them, after all.
Comment 4 Simon Stelling (RETIRED) gentoo-dev 2006-09-27 04:56:22 UTC
thanks Olivier, patch is applied in -r2