Passer à la navigation principale Passer à la recherche Passer au contenu principal

Fast as a shadow, expressive as a tree: Hybrid memory monitoring for C.

  • CEA/UVSQ/CNRS

Résultats de recherche: Le chapitre dans un livre, un rapport, une anthologie ou une collectionContribution à une conférenceRevue par des pairs

Résumé

One classical approach to ensuring memory safety of C programs is based on storing block metadata in a tree-like datastructure. However it becomes relatively slow when the number of memory locations in the tree becomes high. Another solution, based on shadow memory, allows very fast constant-time access to metadata and led to development of several highly optimized tools for detection of memory safety errors. However, this solution appears to be insufficient for evaluation of complex memory-related properties of an expressive specification language. In this work, we address memory monitoring in the context of runtime assertion checking of C programs annotated in E-ACSL, an expressive specification language offered by the FRAMA-C framework for analysis of C code. We present an original combination of a tree-based and a shadow-memory-based techniques that reconciles both the efficiency of shadow memory with the higher expressiveness of annotations whose runtime evaluation can be ensured by a tree of metadata. Shadow memory with its instant access to stored metadata is used whenever small shadow metadata suffices to evaluate required annotations, while richer metadata stored in a compact prefix tree (Patricia trie) is used for evaluation of more complex memory annotations supported by E-ACSL. This combined monitoring technique has been implemented in the runtime assertion checking tool for E-ACSL. Our initial experiments confirm that the proposed hybrid approach leads to a significant speedup with respect to an earlier implementation based on a Patricia trie alone without any loss of precision.

langue originaleAnglais
titre2015 Symposium on Applied Computing, SAC 2015
rédacteurs en chefDongwan Shin
EditeurAssociation for Computing Machinery
Pages1765-1772
Nombre de pages8
ISBN (Electronique)9781450331968
Les DOIs
étatPublié - 13 avr. 2015
Modification externeOui
Evénement30th Annual ACM Symposium on Applied Computing, SAC 2015 - Salamanca, Espagne
Durée: 13 avr. 201517 avr. 2015

Série de publications

NomProceedings of the ACM Symposium on Applied Computing
Volume13-17-April-2015

Une conférence

Une conférence30th Annual ACM Symposium on Applied Computing, SAC 2015
Pays/TerritoireEspagne
La villeSalamanca
période13/04/1517/04/15

Empreinte digitale

Examiner les sujets de recherche de « Fast as a shadow, expressive as a tree: Hybrid memory monitoring for C. ». Ensemble, ils forment une empreinte digitale unique.

Contient cette citation