Re: [PATCH] sh: use generic strncpy()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Geert

Thank you for your review

> > But, current SH strnpy() has 2 issues.
> > 1st is it will access to out-of-memory (= src + 10).
> 
> I believe this is not correct: the code does not really access memory
> beyond the end of the source string.  (Recent) gcc just thinks so,
> because "__src+__n" is used as a parameter to the routine.

I see.
Will fix in v2

Thank you for your help !!
Best regards
---
Kuninori Morimoto



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux