Re: [PATCH v2] arch: arm64: kernel: sprintf(), 'str' needs additional 1 byte for failure processing

2013-05-28 Thread Chen Gang
On 05/28/2013 06:42 PM, Will Deacon wrote: > Hello, > > On Mon, May 27, 2013 at 03:00:12AM +0100, Chen Gang wrote: >> > >> > When failure occurs at the last looping cycle (when 'i == 0'), it will >> > print "bad PC value" instead of "(%08x) ", which needs additional 1 >> > byte. >> > >> > If not

Re: [PATCH v2] arch: arm64: kernel: sprintf(), 'str' needs additional 1 byte for failure processing

2013-05-28 Thread Will Deacon
Hello, On Mon, May 27, 2013 at 03:00:12AM +0100, Chen Gang wrote: > > When failure occurs at the last looping cycle (when 'i == 0'), it will > print "bad PC value" instead of "(%08x) ", which needs additional 1 > byte. > > If not add 1 byte, the 'str' may be memory overflow. > > > Signed-off-b

[PATCH v2] arch: arm64: kernel: sprintf(), 'str' needs additional 1 byte for failure processing

2013-05-26 Thread Chen Gang
When failure occurs at the last looping cycle (when 'i == 0'), it will print "bad PC value" instead of "(%08x) ", which needs additional 1 byte. If not add 1 byte, the 'str' may be memory overflow. Signed-off-by: Chen Gang --- arch/arm64/kernel/traps.c |2 +- 1 files changed, 1 insertions