Skip to content

Commit 2f0edae

Browse files
bugfix
1 parent a6d0eef commit 2f0edae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

blobstamper/helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ template<class T, class ArrayT> class VLATO_ptr
132132
template<class T, class ArrayT>
133133
VLATO_ptr<T,ArrayT>::VLATO_ptr(size_t offset, size_t length)
134134
{
135-
_ptr = (T*) malloc( offset + sizeof(ArrayT) * length -1);
135+
_ptr = (T*) malloc( offset + sizeof(ArrayT) * length);
136136
_length = length;
137137
_offset = offset;
138138
}

test_with_sanitizers.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
export CC=clang-11
44
export CXX=clang++-11
5-
export CFLAGS="-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=undefined"
6-
export CXXFLAGS="-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=undefined"
7-
export LDFLAGS="-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=undefined"
5+
export CFLAGS="-g -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=undefined"
6+
export CXXFLAGS="-g -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=undefined"
7+
export LDFLAGS="-g -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=undefined"
88

99
make clean
1010
make
11+
make examples
1112
make test
12-
make examples

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy