diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2019-01-22 04:06:45 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-01-22 04:06:44 -0800 |
| commit | 87e827c3fd06c820a75ea4f989dcf8a8182475b2 (patch) | |
| tree | 642d7df9f64ac98011749f61d0355721a55d5f4a | |
| parent | 4798f35626c22098ef4331dd32e94c99a16fd67d (diff) | |
| parent | 9de27e66a625ee2ee697c56487ccec6868349500 (diff) | |
Merge "msm: adsprpc: Fix memory out of bounds error"
| -rw-r--r-- | drivers/char/adsprpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c index 3da8f64444a3..b042a3d57de9 100644 --- a/drivers/char/adsprpc.c +++ b/drivers/char/adsprpc.c @@ -2931,7 +2931,7 @@ static int fastrpc_device_open(struct inode *inode, struct file *filp) if (err) return err; snprintf(strpid, PID_SIZE, "%d", current->pid); - buf_size = strlen(current->comm) + strlen(strpid) + 1; + buf_size = strlen(current->comm) + strlen("_") + strlen(strpid) + 1; fl->debug_buf = kzalloc(buf_size, GFP_KERNEL); snprintf(fl->debug_buf, UL_SIZE, "%.10s%s%d", current->comm, "_", current->pid); |
