Commit 40d475c2 authored by Jason Hiser's avatar Jason Hiser 🚜

fixed size_t/uint64_t mismatches for 32-bit, updated testing to cover all supported machines

parent 443c5562
Pipeline #5898 passed with stages
in 12 minutes and 46 seconds
......@@ -24,6 +24,34 @@ do-clean-ubuntu18:
tags:
- ubuntu18
do-clean-ubuntu16:
stage: clean
script:
- ./cicd_testing/do-clean.sh
tags:
- ubuntu16
do-clean-arm32:
stage: clean
script:
- ./cicd_testing/do-clean.sh
tags:
- arm32
do-clean-arm64:
stage: clean
script:
- ./cicd_testing/do-clean.sh
tags:
- arm64
do-clean-centos76:
stage: clean
script:
- ./cicd_testing/do-clean.sh
tags:
- centos76
#
# Building
#
......@@ -34,6 +62,35 @@ do-build-ubuntu18:
tags:
- ubuntu18
do-build-ubuntu16:
stage: build
script:
- ./cicd_testing/do-build.sh
tags:
- ubuntu16
do-build-arm64:
stage: build
script:
- ./cicd_testing/do-build.sh
tags:
- arm64
do-build-arm32:
stage: build
script:
- ./cicd_testing/do-build.sh
tags:
- arm32
do-build-centos76:
stage: build
script:
- ./cicd_testing/do-build.sh
tags:
- centos76
#
# Testing
#
......@@ -44,6 +101,35 @@ do-test-ubuntu18:
tags:
- ubuntu18
do-test-ubuntu16:
stage: test
script:
- ./cicd_testing/do-test.sh
tags:
- ubuntu16
do-test-arm32:
stage: test
script:
- ./cicd_testing/do-test.sh
tags:
- arm32
do-test-arm64:
stage: test
script:
- ./cicd_testing/do-test.sh
tags:
- arm64
do-test-centos76:
stage: test
script:
- ./cicd_testing/do-test.sh
tags:
- centos76
#
# Turbo Fuzzing
......
......@@ -49,20 +49,20 @@ class eh_frame_util_t
{
public:
template <class T>
static bool read_type(T &value, uint64_t &position, const uint8_t* const data, const size_t max);
static bool read_type(T &value, uint64_t &position, const uint8_t* const data, const uint64_t max);
template <class T>
static bool read_type_with_encoding
(const uint8_t encoding, T &value,
uint64_t &position,
const uint8_t* const data,
const size_t max,
const uint64_t max,
const uint64_t section_start_addr );
static bool read_string
(string &s,
uint64_t &position,
const uint8_t* const data,
const size_t max);
const uint64_t max);
// see https://en.wikipedia.org/wiki/LEB128
......@@ -70,20 +70,20 @@ class eh_frame_util_t
( uint64_t &result,
uint64_t &position,
const uint8_t* const data,
const size_t max);
const uint64_t max);
// see https://en.wikipedia.org/wiki/LEB128
static bool read_sleb128 (
int64_t &result,
uint64_t &position,
const uint8_t* const data,
const size_t max);
const uint64_t max);
static bool read_length(
uint64_t &act_length,
uint64_t &position,
const uint8_t* const data,
const size_t max);
const uint64_t max);
};
template <int ptrsize>
......@@ -102,12 +102,12 @@ class eh_program_insn_t : public EHProgramInstruction_t
static void print_uleb_operand(
uint64_t pos,
const uint8_t* const data,
const size_t max) ;
const uint64_t max) ;
static void print_sleb_operand(
uint64_t pos,
const uint8_t* const data,
const size_t max) ;
const uint64_t max) ;
bool parse_insn(
uint8_t opcode,
......@@ -200,7 +200,7 @@ class cie_contents_t : public CIEContents_t, private eh_frame_util_t<ptrsize>
bool parse_cie(
const uint64_t &cie_position,
const uint8_t* const data,
const size_t max,
const uint64_t max,
const uint64_t eh_addr);
void print(const uint64_t startAddr) const ;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment