File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
dpctl-capi/helper/include Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [ Unreleased]
8
8
9
+ ## [ 0.11.3] - 11/30/2021
10
+
11
+ ### Fixed
12
+
13
+ * Set the last byte in allocated char array to zero [ cherry picked from #650 ] (#699 )
14
+
9
15
## [ 0.11.2] - 11/29/2021
10
16
11
17
### Added
12
18
- Extending ` dpctl.device_context ` with nested contexts (#678 )
13
19
14
- ## Fixed
20
+ ### Fixed
15
21
- Fixed issue #649 about incorrect behavior of ` .T ` method on sliced arrays (#653 )
16
22
17
23
## [ 0.11.1] - 11/10/2021
Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ cstring_from_string(const std::string &str)
50
50
#else
51
51
std::strncpy (cstr, str.c_str (), cstr_len);
52
52
#endif
53
+ // Added to resolve CheckMarx's false positive.
54
+ // NB: This is redundant because str.c_str() is guaranteed
55
+ // to be null-terminated and the copy function is asked to
56
+ // copy enough characters to include that null-character.
57
+ cstr[cstr_len - 1 ] = ' \0 ' ;
53
58
} catch (std::bad_alloc const &ba) {
54
59
// \todo log error
55
60
std::cerr << ba.what () << ' \n ' ;
You can’t perform that action at this time.
0 commit comments