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

AddressSanitizer: memcmp issue #9022

Merged
merged 1 commit into from May 10, 2024
Merged

Conversation

caolanm
Copy link
Contributor

@caolanm caolanm commented May 10, 2024

/usr/bin/coolforkit
memcmp
asan/../sanitizer_common/sanitizer_common_interceptors.inc:875 (discriminator 9)
/usr/bin/coolforkit
(anonymous namespace)::textItem(std::vector<char, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool&)
online/kit/KitQueue.cpp:52
/usr/bin/coolforkit
KitQueue::put(std::vector<char, std::allocator > const&)
online/kit/KitQueue.cpp:94

since:

commit f8a0d6c
Date: Thu May 9 15:29:49 2024 +0100

Callbacks: minor efficiency wins, avoid tokenizing where we can.

Change-Id: Ie5d0f86bb33c810b6a5f177421485c977b7fc79a

  • Resolves: #
  • Target version: master

Summary

TODO

  • ...

Checklist

  • Code is properly formatted
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

/usr/bin/coolforkit
	memcmp
		asan/../sanitizer_common/sanitizer_common_interceptors.inc:875 (discriminator 9)
/usr/bin/coolforkit
	(anonymous namespace)::textItem(std::vector<char, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool&)
		online/kit/KitQueue.cpp:52
/usr/bin/coolforkit
	KitQueue::put(std::vector<char, std::allocator<char> > const&)
		online/kit/KitQueue.cpp:94

since:

commit f8a0d6c
Date:   Thu May 9 15:29:49 2024 +0100

    Callbacks: minor efficiency wins, avoid tokenizing where we can.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ie5d0f86bb33c810b6a5f177421485c977b7fc79a
@caolanm caolanm requested review from mmeeks and vmiklos May 10, 2024 10:36
Copy link
Contributor

@vmiklos vmiklos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense: if the value size is offset + remaining and you ignore the offset - 1 prefix, then what remains is remaining -1.

@vmiklos vmiklos merged commit 34b7530 into master May 10, 2024
14 checks passed
@vmiklos vmiklos deleted the private/caolan/avoid_out_by_one branch May 10, 2024 14:16
Copy link
Contributor

@mmeeks mmeeks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank God for ASAN =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants