This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] gas: config: Fix memory overflow issue about strncat()
- From: Alan Modra <amodra at gmail dot com>
- To: Chen Gang <gang dot chen dot 5i5j at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 15 Oct 2014 10:05:17 +1030
- Subject: Re: [PATCH] gas: config: Fix memory overflow issue about strncat()
- Authentication-results: sourceware.org; auth=none
- References: <543BEA51 dot 2040504 at gmail dot com>
On Mon, Oct 13, 2014 at 11:05:53PM +0800, Chen Gang wrote:
> strncat() will append additional '\0' to destination memory, so need
> additional 1 byte for it, or may cause memory overflow.
>
> 2014-10-14 Chen Gang <gang.chen.5i5j@gmail.com>
>
> * config/tc-tic4x.c (md_assemble): Fix memory overflow issue
> about strncat().
Thanks, applied.
--
Alan Modra
Australia Development Lab, IBM