Loading media/libmediametrics/include/media/MediaMetricsItem.h +2 −1 Original line number Diff line number Diff line Loading @@ -470,10 +470,11 @@ protected: status_t extract(std::string *val, const char **bufferpptr, const char *bufferptrmax) { const char *ptr = *bufferpptr; while (*ptr != 0) { if (++ptr >= bufferptrmax) { if (ptr >= bufferptrmax) { ALOGE("%s: buffer exceeded", __func__); return BAD_VALUE; } ++ptr; } const size_t size = (ptr - *bufferpptr) + 1; *val = *bufferpptr; Loading Loading
media/libmediametrics/include/media/MediaMetricsItem.h +2 −1 Original line number Diff line number Diff line Loading @@ -470,10 +470,11 @@ protected: status_t extract(std::string *val, const char **bufferpptr, const char *bufferptrmax) { const char *ptr = *bufferpptr; while (*ptr != 0) { if (++ptr >= bufferptrmax) { if (ptr >= bufferptrmax) { ALOGE("%s: buffer exceeded", __func__); return BAD_VALUE; } ++ptr; } const size_t size = (ptr - *bufferpptr) + 1; *val = *bufferpptr; Loading