From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ursula Braun Subject: Re: [patch 4/7] [PATCH] ctcm: make ctcmpc debugging compilable Date: Wed, 07 Mar 2012 17:53:12 +0100 Message-ID: <1331139192.15095.12.camel@br9gv9yg.de.ibm.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: netdev-owner@vger.kernel.org List-Archive: List-Post: To: David.Laight@aculab.com Cc: Uschi IBM , frank.blaschka@de.ibm.com, netdev@vger.kernel.org, linux-s390@vger.kernel.org List-ID: > From: "David Laight" > To: , > Cc: , , > > Date: 07/03/2012 13:20 > Subject: RE: [patch 4/7] [PATCH] ctcm: make ctcmpc debugging compilable > > What is wrong with: > char addr[24]; > snprintf(addr, sizeof addr, "%p", rptr); > > There seemed to be other 'dangerous' unbounded string > operations in that code as well. > > David David, nothing is wrong with your proposal to make use of %p here. Quite the contrary - it improves the ctcmpc-code. I will keep your proposal in my mind for a future follow-on ctcmpc-patch. Thanks! My patch targets compilability of ctcmpc debugging code only. Ursula