diff --git a/CHANGELOG-developer.next.asciidoc b/CHANGELOG-developer.next.asciidoc index 7fefb8d14c2..6a900dae8cf 100644 --- a/CHANGELOG-developer.next.asciidoc +++ b/CHANGELOG-developer.next.asciidoc @@ -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 diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index eef14a45f56..fd5543cb927 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -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* diff --git a/x-pack/auditbeat/tracing/int_aligned.go b/x-pack/auditbeat/tracing/int_aligned.go index 25c6094ef9a..6c8c4c53972 100644 --- a/x-pack/auditbeat/tracing/int_aligned.go +++ b/x-pack/auditbeat/tracing/int_aligned.go @@ -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 }