Skip to content

Commit

Permalink
chore(iast): iast wheel error on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
avara1986 committed Feb 27, 2025
1 parent ed21fc0 commit 261c957
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ddtrace/appsec/_iast/_taint_tracking/Aspects/Helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ as_formatted_evidence(const string& text,

for (const auto& taint_range : text_ranges) {
string content;
if (!tag_mapping_mode or tag_mapping_mode.value() == TagMappingMode::Normal) {
if (!tag_mapping_mode or *tag_mapping_mode == TagMappingMode::Normal) {
content = get_default_content(taint_range);
} else
switch (*tag_mapping_mode) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ get_range_by_hash(const size_t range_hash, optional<TaintRangeRefs>& taint_range
// TODO: Replace this loop with a efficient function, vector.find() is O(n)
// too.
TaintRangePtr null_range = nullptr;
for (const auto& range : taint_ranges.value()) {
// text_pyobj_opt.value throws a compile error: 'value' is unavailable: introduced in macOS 10.13
for (const auto& range : *taint_ranges) {
if (range_hash == range->get_hash()) {
return range;
}
Expand Down

0 comments on commit 261c957

Please sign in to comment.