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, 14 Oct 2014 23:26:54 +0000 (09:56 +1030)
commit450ccef08d3a35300c9ebeee71df96b9c56ca0b0
tree64485f614e5f4669a0927025a62749998790bfca
parent45229ecbba96f9f07b3b80c1e3bbc93d38017c17
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