fix max_*_log filesize parse errors using CLANG and a potential crash on exit condition
===VersionHistory:None===
Merge branch 'V8_0-branch' into V8_1_5-branch
Merge branch 'V8_1_5-branch'