problems parsing filter in 'latest' 1.8 release

Neil Long neil.long at computing-services.oxford.ac.uk
Tue Mar 21 12:48:48 EST 2000


    Yep - fixed the bug.

    Thanks
    Neil


    Hey Neil,
      Thanks.  Try this fix in ./common/argus_util.c, function
    char *read_infile(fname).

    1197,1198c1197,1198
    <    p = (char *) malloc((unsigned)argus_strbuf.st_size);
    <    if (read(fd, p, (int)argus_strbuf.st_size) != argus_strbuf.st_size)
    ---
    >    p = (char *) calloc(1, (unsigned)argus_strbuf.st_size + 1);
    >    if (read(fd, p, (int)argus_strbuf.st_size) !=
(argus_strbuf.st_size))



    Carter



    > -----Original Message-----
    > From: Neil Long [mailto:neil.long at computing-services.oxford.ac.uk]
    > Sent: Tuesday, March 21, 2000 6:55 AM
    > To: Bullard, Carter [NYPAR:DS33:EXCH]
    > Cc: argus at lists.andrew.cmu.edu
    > Subject: Re: problems parsing filter in 'latest' 1.8 release
    >
    >
    > Hi
    >
    > Fairly minor gotcha I just noticed - if I use ra with a filter file
    > (-F) that file has to have a new line added otherwise
    > ra: expression: syntax error
    >
    > if the file is just one line and ends without any whitespace then
    >
    > ra: expression: illegal char '.'
    >
    >
    > e.g. a file containing just
    >
    > not host 163.1.244.53
    >
    > Never noticed this before and using the same file with argus does not
    > generate the errors.
    >
    > I get the same with argus-1.7.beta.1e versions of ra.
    >
    > Cheers
    > Neil
    >
    > --
    > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    >  Dr Neil J Long, Computing Services, University of Oxford
    >  13 Banbury Road, Oxford, OX2 6NN, UK Tel:+44 1865 273232
    > Fax:+44 1865 273275
    >  EMail:       Neil.Long at computing-services.oxford.ac.uk
    >  PGP:    ID 0xE88EF71F    OxCERT: oxcert at ox.ac.uk PGP: ID 0x4B11561D
    >



More information about the argus mailing list