Merge lp:~colin-king/ecryptfs/misc-ecryptfs-fixes-dec-2015 into lp:ecryptfs
Proposed by
Colin Ian King
Status: | Merged |
---|---|
Merged at revision: | 869 |
Proposed branch: | lp:~colin-king/ecryptfs/misc-ecryptfs-fixes-dec-2015 |
Merge into: | lp:ecryptfs |
Diff against target: |
24 lines (+5/-2) 1 file modified
src/daemon/main.c (+5/-2) |
To merge this branch: | bzr merge lp:~colin-king/ecryptfs/misc-ecryptfs-fixes-dec-2015 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
eCryptfs | Pending | ||
Review via email:
|
Description of the change
Static analysis with Clang's scan-build shows that we can potentially overflow the input buffer if the input is equal or more than the buffer size. Need to guard against this by:
1. Only reading in input_size - 1 chars
2. Checking earlier on to see if input_size is value to insure that we read in at least 1 char
To post a comment you must log in.