Skip to content

Fix UB in StoragesInfoStream#7384

Merged
alexey-milovidov merged 1 commit intomasterfrom
fix_ub_in_system_parts
Oct 19, 2019
Merged

Fix UB in StoragesInfoStream#7384
alexey-milovidov merged 1 commit intomasterfrom
fix_ub_in_system_parts

Conversation

@tavplubix
Copy link
Copy Markdown
Member

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Category (leave one):

  • Bug Fix

Short description (up to few sentences):
offsets[i] was not been initialized for Lazy databases

@tavplubix tavplubix added the pr-bugfix Pull request with bugfix, not backported by default label Oct 18, 2019
Copy link
Copy Markdown
Contributor

@akuzm akuzm left a comment

Choose a reason for hiding this comment

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

If it's a user-visible bug, the description for changelog should be in user terms (i.e. system.parts can show wrong records if there is a Lazy database).
If it isn't, we probably don't want to backport it, and can mark it as pr-build instead of pr-bugfix.

@tavplubix
Copy link
Copy Markdown
Member Author

It rather leads to segfaults, sanitizer reports or exceptions like Cannot mmap 4.00 EiB, then to wrong records.

@alexey-milovidov
Copy link
Copy Markdown
Member

File access error: no space left on device

@alexey-milovidov alexey-milovidov merged commit 52bfa99 into master Oct 19, 2019
@akuzm
Copy link
Copy Markdown
Contributor

akuzm commented Oct 29, 2019

backport conflict in 19.15

@tavplubix tavplubix deleted the fix_ub_in_system_parts branch November 22, 2019 00:03
vitlibar pushed a commit that referenced this pull request Dec 26, 2019
Fix UB in StoragesInfoStream

(cherry picked from commit 52bfa99)
vitlibar pushed a commit that referenced this pull request Dec 27, 2019
Fix UB in StoragesInfoStream

(cherry picked from commit 52bfa99)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants