close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 21 years ago

Closed 21 years ago

Last modified 18 years ago

#67 closed defect (fixed)

tolbase crashes during evaluation

Reported by: hamoros Owned by: Jorge
Priority: high Milestone:
Component: Various Version: head
Severity: critical Keywords: TOL
Cc:

Description

Trying to eval the following code:

Attachments (1)

sftp.tol (5.1 KB) - added by hamoros 21 years ago.
functions for doing secure ftp on a group of files

Download all attachments as: .zip

Change History (6)

Changed 21 years ago by hamoros

Attachment: sftp.tol added

functions for doing secure ftp on a group of files

comment:1 Changed 21 years ago by hamoros

Component: EvalUnclassified
Keywords: TOL added; Tol-Base removed
product: Tol-BaseTOL

The code evaluated:


Set patterns = ("inx.htm", "cnt.htm", "*.gif", "*.jpg", "*.xls", "*.css",

"*.css", "*.js");

Real SFtpBuild("www.bayesforecast.com/html",

"/bysfor/web", "arccom", patterns,
"uracilo", "bayes", "*",
0.0, 0.0);


comment:2 Changed 21 years ago by Javier Portugal

Owner: changed from Javier Portugal to Jorge

This error can be resumed on the next lines:

Set getDir = GetDir("/directorioQueNoExiste");
Set filSet = getDir[1];
Set dirSet = getDir[2];

When argument dir of function "Set GetLine(Text dir)" is a path that doesn´t
exist, this funtion returns an empty set and an error is displayed.

Anyway, tol shouldn't crash when accesing to an element of an empty set.

comment:3 Changed 21 years ago by Jorge

Priority: normalhigh
Severity: majorcritical
Status: newassigned

the priority and severity are also changed (increased)

comment:4 Changed 21 years ago by Jorge

Resolution: fixed
Status: assignedclosed

fixed, a checking for NULL result was needed

comment:5 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000067
Note: See TracTickets for help on using tickets.