search for: infh

Displaying 1 result from an estimated 1 matches for "infh".

Did you mean: inf
2003 Nov 14
2
writeChar potential buffer overrun (PR#5090)
...wing this. But in src/main/connections.c it looks like do_writechar doesn't check the length of strings when given an explicit nchars argument; so I think the strncpy() call will read too far. [This happened because I didn't remember that R lets null terminate strings; so I did a readChar(infh, nchars=6144) through some nulls at the start of the header, and ended up with a much shorter string than I was expecting. As far as I can tell do_readchar still behaves in these circumstances, and in any case I can produce the fault without it.] Using readBin and writeBin with integer() and size...