diff options
Diffstat (limited to 'results/scraper/launchpad-without-comments/1858415')
| -rw-r--r-- | results/scraper/launchpad-without-comments/1858415 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/results/scraper/launchpad-without-comments/1858415 b/results/scraper/launchpad-without-comments/1858415 new file mode 100644 index 00000000..2e380dfd --- /dev/null +++ b/results/scraper/launchpad-without-comments/1858415 @@ -0,0 +1,24 @@ +in tcp_emu function has OOB bug + +qemu version: 4.1.0 + +```c +int tcp_emu(struct socket *so, struct mbuf *m){ +............ +case EMU_REALAUDIO: +............ + while (bptr < m->m_data + m->m_len) { + case 6: +............ + lport = (((uint8_t *)bptr)[0] << 8) + ((uint8_t *)bptr)[1]; +............ + *(uint8_t *)bptr++ = (p >> 8) & 0xff; + *(uint8_t *)bptr = p & 0xff; +............ + } +............ +............ +} +``` + +bptr)[1] and bptr++ ,may make bptr == m->m_data + m->m_len,and cause OOB(out of bounds.) \ No newline at end of file |