Patch for elm.

Johnny Strom jonny.strom at netikka.fi
Wed Jan 14 20:44:19 UTC 2004


Hi All

I just got this from the maintainer of elm.

I will build RH 7.3 rpm's as next step.


Cheers Johnny



-------- Original Message --------
Subject: Re: Hello
Date: Wed, 14 Jan 2004 14:49:06 -0500 (EST)
From: wfp5p AT cthulhu.itc.Virginia.EDU (Bill Pemberton)
To: jonny.strom AT netikka.fi (Johnny Strom)

Johnny Strom writes:
> 
> And Redhat had an uppdate for it:
> https://rhn.redhat.com/errata/RHSA-2004-009.html
> 
> 
> So my question is there some patch for this issue?
> becouse I can't find any more information than this.
> 

Ok, it's a real easy fix (here's the Red Hat fix):

--- elm2.5.6_/utils/from.c.bfrovf	2004-01-08 11:28:44.000000000 +0100
+++ elm2.5.6_/utils/from.c	2004-01-08 11:30:55.000000000 +0100
@@ -464,7 +464,8 @@
  		     fast_header_cmp(buffer,"Re", (char *)NULL)) {
  	      if (subject[0] == '\0') {
  	        remove_header_keyword(buffer);
-		strcpy(subject, buffer);
+		strncpy(subject, buffer, sizeof(subject)-1);
+		subject[sizeof(subject)-1] = '\0';
  	      }
  	    }
  	    else if (fast_header_cmp(buffer,"From", (char *)NULL))


I'll probably release an elm 2.5.7 sometime in the near future that
will include this fix.









More information about the fedora-legacy-list mailing list