[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-patches
Subject:    [Net-snmp-patches] [ net-snmp-Patches-3320659 ] Value assigned to readonly n_name field in auto_nlis
From:       SourceForge.net <noreply () sourceforge ! net>
Date:       2012-08-06 8:07:29
Message-ID: E1SyILa-00069I-0N () sfs-ml-3 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Patches item #3320659, was opened at 2011-06-17 19:00
Message generated for change (Comment added) made by tanders
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=312694&aid=3320659&group_id=12694

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
> Status: Closed
> Resolution: Duplicate
Priority: 5
Private: No
Submitted By: Garrett Cooper (yaberauneya)
Assigned to: Nobody/Anonymous (nobody)
Summary: Value assigned to readonly n_name field in auto_nlist.c

Initial Comment:
FreeBSD and certain NetBSD configurations make the n_name field const, s.t. any \
assignment beyond strcpy, sprintf, etc is made illegal by the compiler.

This patch works around the issue by using strlcpy (which appends a NUL character to \
the end of the string, but doesn't actually legally fix the issue if the compiler is \
made more strict).

The patch also fixes a compiler warning by using the %lx format qualifier as n_value \
has always been a long unsigned int on FreeBSD and NetBSD at least.

The FreeBSD commit that breaks this change is r208986 ( \
http://svnweb.freebsd.org/base/head/sys/sys/nlist_aout.h?r1=208985&r2=208986& ).

----------------------------------------------------------------------

> Comment By: Thomas Anders (tanders)
Date: 2012-08-06 01:07

Message:
OK, thanks, closing as a duplicate.

----------------------------------------------------------------------

Comment By: Garrett Cooper (yaberauneya)
Date: 2012-08-04 20:37

Message:
Yes, it was.

----------------------------------------------------------------------

Comment By: Wes Hardaker (hardaker)
Date: 2011-08-04 10:39

Message:
isn't this a duplicate of the other auto_nlist fixes, just in a different
way?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=312694&aid=3320659&group_id=12694

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-patches mailing list
Net-snmp-patches@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-patches


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic