Cargando…

Endicheck: Dynamic Analysis for Detecting Endianness Bugs

Computers store numbers in two mutually incompatible ways: little-endian or big-endian. They differ in the order of bytes within representation of numbers. This ordering is called endianness. When two computer systems, programs or devices communicate, they must agree on which endianness to use, in o...

Descripción completa

Detalles Bibliográficos
Autores principales: Kápl, Roman, Parízek, Pavel
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2020
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7480700/
http://dx.doi.org/10.1007/978-3-030-45237-7_15
_version_ 1783580462340374528
author Kápl, Roman
Parízek, Pavel
author_facet Kápl, Roman
Parízek, Pavel
author_sort Kápl, Roman
collection PubMed
description Computers store numbers in two mutually incompatible ways: little-endian or big-endian. They differ in the order of bytes within representation of numbers. This ordering is called endianness. When two computer systems, programs or devices communicate, they must agree on which endianness to use, in order to avoid misinterpretation of numeric data values. We present Endicheck, a dynamic analysis tool for detecting endianness bugs, which is based on the popular Valgrind framework. It helps developers to find those code locations in their program where they forgot to swap bytes properly. Endicheck requires less source code annotations than existing tools, such as Sparse used by Linux kernel developers, and it can also detect potential bugs that would only manifest if the given program was run on computer with an opposite endianness. Our approach has been evaluated and validated on the Radeon SI Linux OpenGL driver, which is known to contain endianness-related bugs, and on several open-source programs. Results of experiments show that Endicheck can successfully identify many endianness-related bugs and provide useful diagnostic messages together with the source code locations of respective bugs.
format Online
Article
Text
id pubmed-7480700
institution National Center for Biotechnology Information
language English
publishDate 2020
record_format MEDLINE/PubMed
spelling pubmed-74807002020-09-10 Endicheck: Dynamic Analysis for Detecting Endianness Bugs Kápl, Roman Parízek, Pavel Tools and Algorithms for the Construction and Analysis of Systems Article Computers store numbers in two mutually incompatible ways: little-endian or big-endian. They differ in the order of bytes within representation of numbers. This ordering is called endianness. When two computer systems, programs or devices communicate, they must agree on which endianness to use, in order to avoid misinterpretation of numeric data values. We present Endicheck, a dynamic analysis tool for detecting endianness bugs, which is based on the popular Valgrind framework. It helps developers to find those code locations in their program where they forgot to swap bytes properly. Endicheck requires less source code annotations than existing tools, such as Sparse used by Linux kernel developers, and it can also detect potential bugs that would only manifest if the given program was run on computer with an opposite endianness. Our approach has been evaluated and validated on the Radeon SI Linux OpenGL driver, which is known to contain endianness-related bugs, and on several open-source programs. Results of experiments show that Endicheck can successfully identify many endianness-related bugs and provide useful diagnostic messages together with the source code locations of respective bugs. 2020-03-13 /pmc/articles/PMC7480700/ http://dx.doi.org/10.1007/978-3-030-45237-7_15 Text en © The Author(s) 2020 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
spellingShingle Article
Kápl, Roman
Parízek, Pavel
Endicheck: Dynamic Analysis for Detecting Endianness Bugs
title Endicheck: Dynamic Analysis for Detecting Endianness Bugs
title_full Endicheck: Dynamic Analysis for Detecting Endianness Bugs
title_fullStr Endicheck: Dynamic Analysis for Detecting Endianness Bugs
title_full_unstemmed Endicheck: Dynamic Analysis for Detecting Endianness Bugs
title_short Endicheck: Dynamic Analysis for Detecting Endianness Bugs
title_sort endicheck: dynamic analysis for detecting endianness bugs
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7480700/
http://dx.doi.org/10.1007/978-3-030-45237-7_15
work_keys_str_mv AT kaplroman endicheckdynamicanalysisfordetectingendiannessbugs
AT parizekpavel endicheckdynamicanalysisfordetectingendiannessbugs