Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F frama-c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 208
    • Issues 208
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #633

Closed
Open
Created Jul 16, 2014 by Arvid Jakobsson@jakobsson

Literal strings can be added multiple times in memory

ID0001837: This issue was created automatically from Mantis Issue 1837. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0001837 Frama-C Plug-in > E-ACSL public 2014-07-16 2015-06-08
Reporter arvidj Assigned To signoles Resolution fixed
Priority normal Severity minor Reproducibility have not tried
Platform - OS - OS Version -
Product Version - Target Version - Fixed in Version Frama-C Sodium

Description :

Consider the following example:

int i = 4; while (i--) { char *s = "toto"; /@ assert \valid(s) ; */ printf(s); }

Each time the body of the while-loop is executed, the block corresponding to "toto" is added to the memory store, however this string has always the same address.

Attachments

  • bug-1837-literal-strings.c
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking