Differences From
Artifact [7d9366ce45]:
- File
src/freexl.c
— part of check-in
[1f00f424a2]
at
2018-02-22 13:47:20
on branch trunk
— fixing security issues - Red Hat Bugzilla – Bug 1547892
(user:
sandro
size: 122450)
To Artifact [b206d5fedf]:
- File
src/freexl.c
— part of check-in
[97c9f43cea]
at
2018-02-22 14:10:07
on branch trunk
— completing the previous commit
(user:
sandro
size: 122610)
1105 1105 (double) sizeof (biff_cell_value) *
1106 1106 (double) (workbook->active_sheet->rows) *
1107 1107 (double) (workbook->active_sheet->columns);
1108 1108 if (dsize > 256.0 * 1024.0 * 1024.0)
1109 1109 return FREEXL_INSUFFICIENT_MEMORY;
1110 1110
1111 1111 /* allocating the cell values array */
1112 + if (workbook->active_sheet->rows *
1113 + workbook->active_sheet->columns <= 0)
1114 + {
1115 + workbook->active_sheet->cell_values = NULL;
1116 + return FREEXL_OK;
1117 + }
1112 1118 workbook->active_sheet->cell_values =
1113 1119 malloc (sizeof (biff_cell_value) *
1114 1120 (workbook->active_sheet->rows *
1115 1121 workbook->active_sheet->columns));
1116 1122 if (workbook->active_sheet->cell_values == NULL)
1117 1123 return FREEXL_INSUFFICIENT_MEMORY;
1118 1124 for (row = 0; row < workbook->active_sheet->rows; row++)