diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-10-16T21·39+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-10-16T21·39+0200 |
commit | bd78544f66a001f00623d3d0e9d50b019ada6a9a (patch) | |
tree | 5798881ada9233d977ca7bbb073c67d0d56e8961 /src | |
parent | 79e358ce6d2a2c34f365c24d68ddbab7461380f8 (diff) |
Fix assertion failure in Store::queryPathInfo()
$ nix-store -qR /nix/store/fnord nix-store: src/libstore/store-api.cc:80: std::__cxx11::string nix::storePathToHash(const Path&): Assertion `base.size() >= storePathHashLen' failed. Aborted
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/store-api.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 2c0f68651e4f..92e2685f7f66 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -320,6 +320,8 @@ ref<const ValidPathInfo> Store::queryPathInfo(const Path & storePath) void Store::queryPathInfo(const Path & storePath, Callback<ref<ValidPathInfo>> callback) { + assertStorePath(storePath); + auto hashPart = storePathToHash(storePath); try { |