Menu

#57 [patch] missing libiconv include causes segfault

open
nobody
ctlib (7)
5
2013-06-06
2012-03-23
No

src/apps/tsql.c:704 uses the locale_charset, which is declared in the libiconv header file localcharset.h. However, this file is not included and the function is assumed to return int instead of const char *. For this reason, the returned char pointer is invalid and tsql segfaults at line 714, when trying to access the string.
A patch is attached, which adds the inclusion of localcharset.h in include/tdsiconv.h

Discussion

  • Pietro Cerutti

    Pietro Cerutti - 2012-03-23
     
  • Frediano Ziglio

    Frediano Ziglio - 2013-06-06

    fixed

     

Log in to post a comment.

MongoDB Logo MongoDB