OSDN Git Service

Fix bug in statsd with uid memory guardrail
authorDavid Chen <dwchen@google.com>
Fri, 19 Jan 2018 00:02:42 +0000 (16:02 -0800)
committerDavid Chen <dwchen@google.com>
Fri, 19 Jan 2018 00:02:42 +0000 (16:02 -0800)
commitc0f6f63e2799e5ae95283521a90df801de6ea389
treef8a021683dbe64f75a1e992f8cb2b1c41aeef1b9
parent633792e2d3fd0d09eebc4294119dcc9b1b1de970
Fix bug in statsd with uid memory guardrail

Previously unsigned a negative number to unsigned type, so the int
comparison didn't work as planned.

Test: Manually tested and observed log messages.
Change-Id: Ic72c4dbde5e560288fd64ca11c4bcc81021fb1a9
cmds/statsd/src/packages/UidMap.cpp
cmds/statsd/src/packages/UidMap.h