Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A ADIOS2
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 97
    • Issues 97
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Podhorszki, Norbert
  • ADIOS2
  • Issues
  • #1121
Closed
Open
Issue created Jan 31, 2019 by Podhorszki, Norbert@pnbOwner

C API: cannot write a string value

Created by: pnorbert

A string value will cause the write to fail with buffer overflow:

Write a string testStr = [A string variable]
ERROR: buffer overflow when resizing to 7917544755212288000 bytes,  when resizing buffer to 7917544755212288000bytes, in call to variable varStr Put

Extending the test testing/adios2/bindings/C/TestBPWriteReadMultiblock.cpp exhibits the problem.

const char testStr[] = "A string variable";
adios2_variable *varStr =
            adios2_define_variable(ioH, "varStr", adios2_type_string, 0, nullptr,
                                   nullptr, nullptr, adios2_constant_dims_true);
...
printf("Write a string testStr = [%s]\n", testStr);
adios2_put(engineH, varStr, testStr, adios2_mode_deferred);
Assignee
Assign to
Time tracking