Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #6831

Closed (moved)
(moved)
Open
Created Sep 13, 2012 by Nick Mathewson@nickm🍬

Fix behavior of round_to_power_of_2

When called on a value greater than 1llu <<63, round_to_power_of_2 will try to compute 1llu <<64, which is undefined.

This shouldn't be happening, since we only call this function in one place related to memory allocation, and we shouldn't be trying to allocate exabits of data anyway.

Still, better to fix it than not.

Similar to #6827 (moved) ; found while looking for similar problematic shifts.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking