[dovecot/core] 569b50: lib: path-util - Allocate more space earlier
GitHub
noreply at github.com
Mon Nov 20 23:30:10 EET 2017
Branch: refs/heads/master
Home: https://github.com/dovecot/core
Commit: 569b5022db8e39a7f237cae08feb5412dadb2e65
https://github.com/dovecot/core/commit/569b5022db8e39a7f237cae08feb5412dadb2e65
Author: Aki Tuomi <aki.tuomi at dovecot.fi>
Date: 2017-11-20 (Mon, 20 Nov 2017)
Changed paths:
M src/lib/path-util.c
Log Message:
-----------
lib: path-util - Allocate more space earlier
Fixes assert crash in path_normalize when termination
needs to happen at asize boundary.
Panic: file path-util.c: line 93 (path_normalize): assertion failed: ((size_t)((npath_pos - npath) + 1) < asize)
Commit: 71acd1d082704ebabd034d3e73110b39fa5b7ef2
https://github.com/dovecot/core/commit/71acd1d082704ebabd034d3e73110b39fa5b7ef2
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2017-11-20 (Mon, 20 Nov 2017)
Changed paths:
M src/lib/test-path-util.c
Log Message:
-----------
lib: Improve test-path-util unit test to catch off-by-one memory allocation errors
Commit: 89155c6638ceb724ed2d40daf1621f7c632243fd
https://github.com/dovecot/core/commit/89155c6638ceb724ed2d40daf1621f7c632243fd
Author: Stephan Bosch <stephan.bosch at dovecot.fi>
Date: 2017-11-20 (Mon, 20 Nov 2017)
Changed paths:
M src/lib/path-util.c
Log Message:
-----------
lib: path-util: Improved conditional expressions in path_normalize() to match the earlier adjusted assertions.
Added some more assertions in the process to make sure subtractions are always valid.
Compare: https://github.com/dovecot/core/compare/82e776175088...89155c6638ce
More information about the dovecot-cvs
mailing list