ecryptfs-add-passphrase crashes with "Segmentation fault" message if ~/.ecryptfsrc file exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
Fix Released
|
High
|
Dustin Kirkland |
Bug Description
This happens on ecryptfs-utils binaries that I've built from revision 438.
* Steps to reproduce:
$ cat 'salt=001122334
$ ecryptfs-
Passphrase: [ insert random passphrase ]
Segmentation fault
It looks like it's caused by dereferencing a null pointer at src/libecryptfs
-- Begin patch --------
=== modified file 'src/libecryptf
--- src/libecryptfs
+++ src/libecryptfs
@@ -689,7 +689,7 @@
}
}
- nvp = &nvp_list_head;
+ nvp = nvp_list_head.next;
while (nvp) {
if (strcmp(nvp->name, "salt") == 0) {
-- End patch --------
When parsing ~/.ecryptfsrc file, a list of ecryptfs_
Changed in ecryptfs: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Dustin Kirkland (kirkland) |
Changed in ecryptfs: | |
status: | Fix Committed → Fix Released |
Thanks for the patch! Fix committed.
:-Dustin