Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • SWIFTsim SWIFTsim
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 57
    • Issues 57
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 23
    • Merge requests 23
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • SWIFT
  • SWIFTsimSWIFTsim
  • Merge requests
  • !1006

UBsan fix for RNG

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Matthieu Schaller requested to merge UBsan_random into master Jan 23, 2020
  • Overview 3
  • Commits 1
  • Changes 1

Add an explicit cast to uint32_t in inl_erand48() to silence a runtime error from the undefined behaviour sanitizer.

Fixes #606 (closed).

I am getting fed up with UBsan reporting this continuously and hence generating too much noise.

Edited Jan 24, 2020 by Matthieu Schaller
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: UBsan_random