Re: coredump in df_readascii



In article <980e1957-d347-4871-ba91-caec429395fb@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
<dipesh_kamdar@xxxxxxxxx> wrote:
thanks for quick reply.

Version : 4.2.3
OS : AS3

It looks like problem with is_comment(c) in datafile.c.
Reason : df_commentschars is null.

#define is_comment(c) ((c) && (strchr(df_commentschars, (c)) != NULL))

Strange.
I can think of no way in which df_commentschars could ever become NULL.
It is initialized to "#", and any further set/unset commands can only replace
this with another string. You can set it to an empty string, but that
is a normal condition and shouldn't cause a segfault.

Did you intentionally use
set datafile commentschar ...
to set it to something unusual?
--
Ethan A Merritt
.



Relevant Pages

  • Re: Unable to connect a website using LWP
    ... shouldn't have any reason to. ... Hmm. ... inequality operations (testing if the status code returned is>= 200 ... you compare an empty string to a number using the == operator, ...
    (comp.lang.perl.modules)
  • Re: Where to place a constant?
    ... an empty string has no ... you'll limit code reusability somewhat. ... That again depends on the implementation you use, not only on settings. ... That's of course a very good reason to write your own ones, ...
    (comp.lang.cpp)
  • Re: I dont quite get this "string".find()
    ... to make a special case out of searching for an empty string. ... Ahh, it's still darned strange:). ... my solution is not to search for empty strings <wink>. ...
    (comp.lang.python)
  • Re: Strange Overflow Error!
    ... Strange indeed...it sounds to me like you've covered all the obvious bases. ... Exploring a bit further the NULL problems, one bit of defensive coding you ... could try would be to concatenate it with an empty string on the left hand ...
    (microsoft.public.vb.database.ado)
  • VBS gets empty string
    ... the VBS gets empty string from COM. ... Dim mystring ... MsgBox' in some reason, ...
    (microsoft.public.vc.atl)