Skip to content

Commit e8f2da2

Browse files
authored
Merge pull request #942 from bugsnag/releases/v8.8.1
Releases/v8.8.1
2 parents fb22692 + f5b514f commit e8f2da2

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

.buildkite/pipeline.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ steps:
1010
timeout_in_minutes: 5
1111
env:
1212
UNITY_VERSION: *2021
13+
plugins:
14+
artifacts#v1.9.0:
15+
upload:
16+
- "Bugsnag/Library/Logs/*.log"
1317
commands:
1418
- rake code:verify
1519

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
using System.Reflection;
2-
[assembly: AssemblyVersion("8.8.0.0")]
2+
[assembly: AssemblyVersion("8.8.1.0")]

Bugsnag/Assets/Bugsnag/Runtime/Native/Android/NativeClient.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,11 @@ private StackTraceLine[] ToStackFrames(System.Exception exception, IntPtr[] nati
182182
return new StackTraceLine[0];
183183
}
184184

185-
var StackTraceLength = nativeAddresses.Length;
186-
StackTraceLine[] Trace = new StackTraceLine[StackTraceLength];
185+
// Use the minimum of both lengths to avoid out-of-bounds access
186+
var length = nativeAddresses.Length < lines.Length ? nativeAddresses.Length : lines.Length;
187+
StackTraceLine[] Trace = new StackTraceLine[length];
187188

188-
for (int i = 0; i < StackTraceLength; i++)
189+
for (int i = 0; i < length; i++)
189190
{
190191
StackTraceLine Frame = new StackTraceLine();
191192

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 8.8.1 (2025-09-23)
4+
5+
### Bug Fixes
6+
7+
- Fix an issue where building native stack traces could trigger an out of bounds exception [#941](https://github.com/bugsnag/bugsnag-unity/pull/941)
8+
39
## 8.8.0 (2025-09-16)
410

511
### Enhancements
@@ -14,6 +20,8 @@
1420

1521
## 8.7.1 (2025-09-08)
1622

23+
### Bug Fixes
24+
1725
- Fix an issue where additional IL2CPP arguments were added without proper whitespace checks [#928](https://github.com/bugsnag/bugsnag-unity/pull/928)
1826

1927
## 8.7.0 (2025-08-28)

0 commit comments

Comments
 (0)