Skip to content

Commit

Permalink
Issue #183 Potential Heap-based Buffer Overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dsalantic committed Nov 23, 2021
1 parent 9aeaeee commit 3f765d3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Expand Up @@ -27,6 +27,9 @@ set(EXECUTABLE_OUTPUT_PATH install)

set(CMAKE_CXX_STANDARD 11)

#set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
#set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")

include_directories(src/asterix)
include_directories(src/engine)
include_directories(src/main)
Expand Down
5 changes: 4 additions & 1 deletion HISTORY
Expand Up @@ -249,4 +249,7 @@ Issue #178 Explicit items with more elements then in definition should be put to
2.8.1 (python_v0.7.1)
Issue #180 Problem decoding repetitive data item I023/120 Service Statistics
Issue #181 Add missing Single Antenna (SA) element in Data Item I021/008 for CAT021 v2.1
Issue #182 convert timestamp to double, improves precision
Issue #182 convert timestamp to double, improves precision

2.8.2 (python_v0.7.2)
Issue #183 Potential Heap-based Buffer Overflow
2 changes: 1 addition & 1 deletion SECURITY.md
Expand Up @@ -2,4 +2,4 @@

## Reporting a Vulnerability

Please report security issues to <email>
Please report security issues to damir dot salantic at gmail dot com
2 changes: 1 addition & 1 deletion asterix/version.py
@@ -1 +1 @@
__version__ = '0.7.1'
__version__ = '0.7.2'
1 change: 1 addition & 0 deletions src/asterix/DataItemFormatExplicit.cpp
Expand Up @@ -68,6 +68,7 @@ bool DataItemFormatExplicit::getText(std::string &strResult, std::string &strHea
// full length must be multiple of body length
if (bodyLength == 0 || nFullLength % bodyLength != 0) {
Tracer::Error("Wrong data length in Explicit. Needed=%d and there is %d bytes.", bodyLength, nFullLength);
return false;
}

std::string tmpStr = "";
Expand Down
4 changes: 2 additions & 2 deletions src/main/version.h
Expand Up @@ -26,7 +26,7 @@
#ifndef VERSION_H
#define VERSION_H

#define _VERSION 2.8.1
#define _VERSION_STR "2.8.1"
#define _VERSION 2.8.2
#define _VERSION_STR "2.8.2"

#endif

0 comments on commit 3f765d3

Please sign in to comment.