Fix memory overflow issue about strncat
authorChen Gang <gang.chen.5i5j@gmail.com>
Tue, 14 Oct 2014 23:18:47 +0000 (09:48 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 28 Oct 2014 06:08:04 +0000 (16:38 +1030)
commitb257b190e067a5153203c87abd7cadde4cd0c8be
treef1afc2002f7b4631ea6383128f35259d7b87bdde
parent625797b3dc84d9ea9a6a28bbfa084ebb65beef0a
Fix memory overflow issue about strncat

If src contains n or more bytes, strncat() writes n+1 bytes to dest
(n from src plus the terminating null byte).   Therefore, the size of
dest must be at least strlen(dest)+n+1.

* config/tc-tic4x.c (md_assemble): Correct strncat size.
gas/ChangeLog
gas/config/tc-tic4x.c