diff options
author | Omer BenAmram <omerbenamram@gmail.com> | 2019-06-20 00:02:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-20 00:02:15 +0300 |
commit | 024d7710e21cf9e2f433c320635804bc19b80a59 (patch) | |
tree | 7a3744189269bf34d9db98fafa01e3e4ac6561a7 | |
parent | 7f590117e6a9b7496a5a8987c8ce69494eaad8fc (diff) | |
parent | f05c4a11f082dc104456b78c12723c9ba3d3b4d7 (diff) |
Merge pull request #14 from omerbenamram/bugfix/fix-ads-detection
Bugfix/fix ads detection
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | CHANGELOG.md | 5 | ||||
-rw-r--r-- | src/csv.rs | 7 |
3 files changed, 12 insertions, 3 deletions
@@ -1,4 +1,7 @@ # Generated by Cargo + +.idea + # will have compiled files and executables /target/ diff --git a/CHANGELOG.md b/CHANGELOG.md index b4b2131..42b4e09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.4.4] - 2019-06-19 + +### Fixed +- Fixed a bug where `HasAlternateDataStreams` will miss entries with only a single named stream. + ## [0.4.3] - 2019-06-06 ### Added @@ -92,9 +92,10 @@ impl FlatMftEntryWithName { let has_ads = entry_attributes .iter() - .filter(|a| a.header.type_code == MftAttributeType::DATA) - .count() - > 1; + .any(|a| { + a.header.type_code == MftAttributeType::DATA && a.header.name.len() > 0 + }); + FlatMftEntryWithName { entry_id: entry.header.record_number, |