Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
2ae65ae4
Unverified
Commit
2ae65ae4
authored
Jun 06, 2025
by
Daniel Hiltgen
Committed by
GitHub
Jun 06, 2025
Browse files
win: handle more than 2048 processes (#10997)
Fix an array out of bounds crash
parent
a3b6886b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
cmd/start_windows.go
cmd/start_windows.go
+10
-1
No files found.
cmd/start_windows.go
View file @
2ae65ae4
...
@@ -74,7 +74,16 @@ func isProcRunning(procName string) []uint32 {
...
@@ -74,7 +74,16 @@ func isProcRunning(procName string) []uint32 {
slog
.
Debug
(
"failed to check for running installers"
,
"error"
,
err
)
slog
.
Debug
(
"failed to check for running installers"
,
"error"
,
err
)
return
nil
return
nil
}
}
pids
=
pids
[
:
ret
]
if
ret
>
uint32
(
len
(
pids
))
{
pids
=
make
([]
uint32
,
ret
+
10
)
if
err
:=
windows
.
EnumProcesses
(
pids
,
&
ret
);
err
!=
nil
||
ret
==
0
{
slog
.
Debug
(
"failed to check for running installers"
,
"error"
,
err
)
return
nil
}
}
if
ret
<
uint32
(
len
(
pids
))
{
pids
=
pids
[
:
ret
]
}
var
matches
[]
uint32
var
matches
[]
uint32
for
_
,
pid
:=
range
pids
{
for
_
,
pid
:=
range
pids
{
if
pid
==
0
{
if
pid
==
0
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment