Modify

Opened 18 years ago

Closed 18 years ago

#166 closed Bug (Fixed)

_ArrayMax() runs on invalid array.

Reported by: Evilertoaster Owned by: Jos
Milestone: 3.2.11.2 Component: AutoIt
Version: 3.2.10.0 Severity:
Keywords: Cc:

Description

See http://www.autoitscript.com/forum/index.php?showtopic=66284.

The _ArrayMax() function only works on 1 dimentional arrays, but does not return a error if someone tries it with a multi-dimentional array. This results in a crash from within the UDF.

Proposed solution is to add this to line 319 of Array.au3-
'If IsArray($avArray) and UBound($avArray,0)=1 Then'
which would make sure the array is single dimentional before attempting to run.

Attachments (0)

Change History (1)

comment:1 by Jos, 18 years ago

Milestone: 3.2.11.2
Owner: set to Jos
Resolution: Fixed
Status: newclosed

Fixed in version: 3.2.11.2

Modify Ticket

Action
as closed The owner will remain Jos.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.