Page MenuHomePhabricator

Fix for sscanf operations
ClosedPublic

Authored by godlytalias on Oct 6 2017, 2:40 AM.

Details

Summary

As 'flags' can be supplied by application, in case application is supplying
a big string(error case), it can cause crash in some version of glibc.

Setting maximum possible input (0x64) length as width specifier

Fix for static code analyzer warnings

  • scanf without field width limits can crash with huge input data on some versions of libc

Signed-off-by: Godly T.Alias <godlytalias@yahoo.co.in>

Test Plan

Run SonarQube

Diff Detail

Repository
rEFL core/efl
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
godlytalias created this revision.Oct 6 2017, 2:40 AM
cedric accepted this revision.Oct 6 2017, 9:48 AM
This revision is now accepted and ready to land.Oct 6 2017, 9:48 AM
This revision was automatically updated to reflect the committed changes.