Menu

#25 a bug in snprintf() in buffer.c

open
nobody
None
5
2001-08-21
2001-08-21
Anonymous
No

Hi,

In lib/mrt/buffer.c,

int
snprintf (char *str, size_t size, const char
*format, ...)

There is an assertion, assert (strlen (str) < size),
which I think should not be there.

I have actually run into the assertion error with my
runtime program, which uses mrtd as a programming
library.

Aug 21 15:56:58 [571077647] *FATAL* mp3 MRT: assertion
(strlen (str) < size) failed at line
241 file buffer.c

I suggest to remove the assertion statement.

Tony

Discussion


Log in to post a comment.

MongoDB Logo MongoDB