www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/02/08/22:23:38

Date: Wed, 9 Feb 94 11:34:19 JST
From: Stephen Turnbull <turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp>
To: Gilles DOT Guyot AT sophia DOT inria DOT fr
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Pb. while reading directories

Gilles--
    I don't know about your specific problem, but there seems to be a
bug in the library.  In particular, it doesn't handle NULL strings in
the formatted output functions.  What seems to be happening is that
NULL strings get optimized to NULL pointers, and then get passed to
functions (in particular, strlen()) that try to actually access the
NULL pointer, generating the exception, rather than recognizing that
it is NULL and return length 0.  This is my fist guess anytime I see
exceptions generated by [vsf]*printf.
    I am going to try to track it down myself next week, but if you
have access to the library source and can do it yourself before then
and post a fix....  ;-)
    --Steve


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019