﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
533	_ArrayBinarySearch allows multi-dimension array when it shouldn't	Triblade	Gary	"It's my coding mistake that I tried to use it on a two dimensional array, but it didn't return an error code, but 'crashed' back to the editor.

Error:

C:\Program Files\AutoIt3\Include\Array.au3 (102) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
If $avArray[$iStart] > $vValue Or $avArray[$iEnd] < $vValue Then Return SetError(2, 0, -1)
If ^ ERROR
->15:51:57 AutoIT3.exe ended.rc:1


It's the same error as in bug 166, but with a different array UDF.
Possible fix:
{{{
If UBound($avArray, 0) > 1 Then Return SetError(5, 0, -1)
}}}

Others I think(!) that have the same issue:
_ArrayTrim
_ArrayToString (and thus: _ArrayToClip)
_ArrayReverse
_ArrayPop
_ArrayMinIndex
_ArrayMin
_ArrayMax
_ArrayConcatenate
_ArrayAdd
"	Bug	closed	3.2.13.8	AutoIt	3.2.12.0	None	Fixed		
