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

ack_tracker: keep AckTracker parent class 64 bit aligned #169

Merged
merged 1 commit into from Jul 22, 2014

Conversation

lbudai
Copy link
Collaborator

@lbudai lbudai commented Jul 22, 2014

AckTracker is a parent "class" for LateAckTracker which contains a RingBuffer.
RingBuffer has a pointer member which points to the memory where the AckRecord
slots (containing Bookmark) are stored.
When the AckTracker is unaligned then the RingBuffer within LateAckTracker
will also be unaligned and that can lead to SIGBUS on Sparc and IA64 platforms.

Signed-off-by: Budai Laszlo Laszlo.Budai@balabit.com

AckTracker is a parent "class" for LateAckTracker which contains a RingBuffer.
RingBuffer has a pointer member which points to the memory where the AckRecord
slots (containing Bookmark) are stored.
When the AckTracker is unaligned then the RingBuffer within LateAckTracker
will also be unaligned and that can lead to SIGBUS on Sparc and IA64 platforms.

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
algernon added a commit that referenced this pull request Jul 22, 2014
ack_tracker: keep AckTracker parent class 64 bit aligned
@algernon algernon merged commit 11805bc into syslog-ng:3.6/master Jul 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants