[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-apl] Premature delete in file_io.cc:eval_AXB
From: |
Frederick H. Pitts |
Subject: |
[Bug-apl] Premature delete in file_io.cc:eval_AXB |
Date: |
Thu, 23 Jan 2014 11:21:46 -0600 |
Gentle people,
While exercising the native file_io functions, I observe that when a
data write above a certain size is performed, garbage starts appearing
in the beginning of the output file. A comparison of the output of
valgrind runs performed when the error does and does not occur show that
a fwrite using an invalid memory pointer is occurring in file_io.cc at
line 615 when the error occurs. On line 614 a delete is performed with
a pointer to the same buffer that the fwrite is using. I imagine the
delete needs to be moved to the line following the write.
I'm using Gnu APL svn revision 103. If I need to provide a test case
or more detail, please let me know.
Regards,
Fred Pitts
Retired Chemical Engineer
- [Bug-apl] Premature delete in file_io.cc:eval_AXB,
Frederick H. Pitts <=