Skip to content

Commit

Permalink
Fix copy arguments for strict aligned architectures in ktrace decoding (
Browse files Browse the repository at this point in the history
elastic#36976)

Small typo. In practice only affects arm32 and arm64 as I doubt there are users
of other architectures around.
  • Loading branch information
haesbaert authored and Scholar-Li committed Feb 5, 2024
1 parent 7dffe64 commit 08cfdde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG-developer.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ The list below covers the major changes between 7.0.0-rc2 and main only.
- Fixed some race conditions in tests {pull}36185[36185]
- Re-enable HTTPJSON fixed flakey test. {issue}34929[34929] {pull}36525[36525]
- Make winlogbeat/sys/wineventlog follow the unsafe.Pointer rules. {pull}36650[36650]
- Cleaned up documentation errors & fixed a minor bug in Filebeat Azure blob storage input. {pull}36714[36714]
- Cleaned up documentation errors & fixed a minor bug in Filebeat Azure blob storage input. {pull}36714[36714]
- Fix copy arguments for strict aligned architectures. {pull}36976[36976]

==== Added

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ is collected by it.
*Auditbeat*

- Add `ignore_errors` option to audit module. {issue}15768[15768] {pull}36851[36851]
- Fix copy arguments for strict aligned architectures. {pull}36976[36976]

*Filebeat*

Expand Down
2 changes: 1 addition & 1 deletion x-pack/auditbeat/tracing/int_aligned.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
var errBadSize = errors.New("bad size for integer")

func copyInt(dst unsafe.Pointer, src unsafe.Pointer, len uint8) error {
copy((*(*[maxIntSizeBytes]byte)(src))[:len], (*(*[maxIntSizeBytes]byte)(src))[:len])
copy((*(*[maxIntSizeBytes]byte)(dst))[:len], (*(*[maxIntSizeBytes]byte)(src))[:len])
return nil
}

Expand Down

0 comments on commit 08cfdde

Please sign in to comment.