Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b0f6e3b authored by Hui Peng's avatar Hui Peng
Browse files

Fix an OOB write in SDP_AddAttribute

When the `attr_pad` becomes full, it is possible
that an index of `-1` that is used to write a zero
byte to `p_val` (in the following statement),
resulting OOB write.

```
  p_val[SDP_MAX_PAD_LEN - p_rec->free_pad_ptr - 1] = '\0';
```

Bug: 261867748
Test: manual
Tag: #security
Ignore-AOSP-First: Security
Change-Id: I937d22a2df26fca1d7f06b10182c4e713ddfed1b
parent b7bb2215
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment