mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Increase the recursion for Seabear CSV import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ce008f52db
commit
2d2d890ac7
1 changed files with 7 additions and 0 deletions
7
file.c
7
file.c
|
@ -973,6 +973,13 @@ int parse_seabear_csv_file(const char *filename, int timef, int depthf, int temp
|
|||
char *ptr, *ptr_old = NULL;
|
||||
char *NL = NULL;
|
||||
|
||||
/* Increase the limits for recursion and variables on XSLT
|
||||
* parsing */
|
||||
xsltMaxDepth = 30000;
|
||||
#if LIBXSLT_VERSION > 10126
|
||||
xsltMaxVars = 150000;
|
||||
#endif
|
||||
|
||||
if (timef >= MAXCOLS || depthf >= MAXCOLS || tempf >= MAXCOLS || po2f >= MAXCOLS || o2sensor1f >= MAXCOLS || o2sensor2f >= MAXCOLS || o2sensor3f >= MAXCOLS || cnsf >= MAXCOLS || ndlf >= MAXCOLS || cnsf >= MAXCOLS || stopdepthf >= MAXCOLS || pressuref >= MAXCOLS)
|
||||
return report_error(translate("gettextFromC", "Maximum number of supported columns on CSV import is %d"), MAXCOLS);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue