Modify

Opened 17 years ago

Closed 17 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.

Change History (1)

comment:1 Changed 17 years ago by Jos

  • Milestone set to 3.2.11.2
  • Owner set to Jos
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version: 3.2.11.2

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.