Re: rpki-client: check empty TAL file

2019-11-17 Thread Claudio Jeker
On Sun, Nov 17, 2019 at 10:05:11PM +0100, Kristaps Dzonsons wrote: > If tal_read_file() returns a NULL buffer, which can happen with an empty > file or one containing only comments, the NULL value eventually > propogates to tal_parse_buffer() where it crashes on strchr(). > > This patch also adds/

rpki-client: check empty TAL file

2019-11-17 Thread Kristaps Dzonsons
If tal_read_file() returns a NULL buffer, which can happen with an empty file or one containing only comments, the NULL value eventually propogates to tal_parse_buffer() where it crashes on strchr(). This patch also adds/fixes documentation to the some functions, specifies a NUL terminator instead