I've been using xlnt for saving my data to xlsx for quite a while without any problems. However recently when I was trying to save a little bit more data than usual and I encountered this:
double free or corruption (out)
Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
but sometimes it's:
free(): invalid pointer Signal: SIGABRT (Aborted)
This is the code, which is problematic:
xlnt::alignment alignment;
alignment.horizontal(xlnt::horizontal_alignment::center);
alignment.vertical(xlnt::vertical_alignment::center);
xlnt::worksheet ws = wb.create_sheet();
int N = 720
ws.range(xlnt::range_reference(1, 1, 5, N)).alignment(alignment);
I also found out the N (numer of rows) value is problematic here. If it is below 700 everything is fine and the file is formatted as expected. When I comment the last line out it also doesn't crash. Any ideas what might be the reason? I am using v1.5.0 on Linux Ubuntu 18.04 compiling with GCC 7.5
Hi
I've been using xlnt for saving my data to xlsx for quite a while without any problems. However recently when I was trying to save a little bit more data than usual and I encountered this:
but sometimes it's:
free(): invalid pointer Signal: SIGABRT (Aborted)
This is the code, which is problematic:
Stack trace:
I also found out the N (numer of rows) value is problematic here. If it is below 700 everything is fine and the file is formatted as expected. When I comment the last line out it also doesn't crash. Any ideas what might be the reason? I am using v1.5.0 on Linux Ubuntu 18.04 compiling with GCC 7.5