Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe
  • Repository

Switch branch/tag
  • ipipe
  • lib
  • mpi
  • mpicoder.c
Find file BlameHistoryPermalink
  • Andrzej Zaborowski's avatar
    lib/mpi: only require buffers as big as needed for the integer · 9cbe21d8
    Andrzej Zaborowski authored Nov 13, 2015
    
    
    Since mpi_write_to_sgl and mpi_read_buffer explicitly left-align the
    integers being written it makes no sense to require a buffer big enough for
    the number + the leading zero bytes which are not written.  The error
    returned also doesn't convey any information.  So instead require only the
    size needed and return -EOVERFLOW to signal when buffer too short.
    Signed-off-by: default avatarAndrew Zaborowski <andrew.zaborowski@intel.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    9cbe21d8

Replace mpicoder.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.

Imprint & Privacy Policy