Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime Error - Overflow #56

Closed
ThomasG08 opened this issue Jul 16, 2022 · 0 comments
Closed

Runtime Error - Overflow #56

ThomasG08 opened this issue Jul 16, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ThomasG08
Copy link

ThomasG08 commented Jul 16, 2022

pLength is defined as Long in global variables
Array Access with Integer will cause overflow or not all elements to be accessible

Public Property Get item(ByVal i As Integer) As Variant

stdVBA/src/stdArray.cls

Lines 507 to 512 in 835bf4b

Public Property Set item(ByVal i As Integer, ByVal item As Object)
set pArr(i) = item
End Property
Public Property Let item(ByVal i As Integer, ByVal item As Variant)
pArr(i) = item
End Property

stdVBA/src/stdArray.cls

Lines 517 to 519 in 835bf4b

Public Sub PutItem(ByVal i As Integer, ByRef item As Variant)
CopyVariant pArr(i), item
End Sub

Public Function indexOf(ByVal el As Variant, Optional ByVal start As Integer = 1) as integer

Public Function includes(ByVal el As Variant, Optional ByVal startFrom As Integer = 1) As Boolean

stdVBA/src/stdArray.cls

Lines 629 to 630 in 835bf4b

Dim i As Integer
For i = 1 To pLength

stdVBA/src/stdArray.cls

Lines 647 to 648 in 835bf4b

Dim i As Integer
For i = 1 To pLength

stdVBA/src/stdArray.cls

Lines 661 to 662 in 835bf4b

Dim i As Integer
For i = 1 To pLength

stdVBA/src/stdArray.cls

Lines 708 to 709 in 835bf4b

Dim i As Integer
For i = 1 To pLength

@sancarn sancarn added the bug Something isn't working label Jul 21, 2022
@sancarn sancarn self-assigned this Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants