Skip to content

Commit

Permalink
Use STL containers when requiring pointer/iterator stability
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommy Muir committed Aug 4, 2024
1 parent ad4bc32 commit 148c08d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion differ.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace security::bindiff {
class MatchingContext;

// These need to be sorted
using Histogram = absl::btree_map<std::string, size_t>;
using Histogram = std::map<std::string, size_t>;
using Confidences = absl::btree_map<std::string, double>;

// Main entry point to the differ, runs the core algorithm and produces a
Expand Down
4 changes: 2 additions & 2 deletions reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct FlowGraphInfo {
int edge_count = 0;
int instruction_count = 0;
};
using FlowGraphInfos = absl::btree_map<Address, FlowGraphInfo>;
using FlowGraphInfos = std::map<Address, FlowGraphInfo>;

struct FixedPointInfo {
friend bool operator==(const FixedPointInfo& lhs, const FixedPointInfo& rhs) {
Expand Down Expand Up @@ -69,7 +69,7 @@ struct FixedPointInfo {
bool evaluate;
bool comments_ported;
};
using FixedPointInfos = absl::btree_set<FixedPointInfo>;
using FixedPointInfos = std::set<FixedPointInfo>;

bool operator<(const FixedPointInfo& one, const FixedPointInfo& two);

Expand Down

0 comments on commit 148c08d

Please sign in to comment.