Commit 3099bab
Anushree Prakash B
Bug#30885987 - ANOTHER BUFFER OVERFLOWS IN CLI_READ_ROWS
DESCRIPTION
===========
There is a heap buffer over read and over write while
reading rows if the packet contents are bad.
ANALYSIS
========
There are some missing boundary checks in client-side
functions which can cause read or write buffer overflows.
FIX
===
Added checks in the required code path to avoid buffer
overflows.
RB: 253671 parent 8ed6479 commit 3099bab
File tree
3 files changed
+65
-2
lines changed- mysql-test/include
- sql-common
- sql
3 files changed
+65
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1695 | 1695 | | |
1696 | 1696 | | |
1697 | 1697 | | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1698 | 1702 | | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
1699 | 1712 | | |
1700 | 1713 | | |
1701 | 1714 | | |
| |||
1713 | 1726 | | |
1714 | 1727 | | |
1715 | 1728 | | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
1716 | 1734 | | |
1717 | 1735 | | |
1718 | 1736 | | |
1719 | 1737 | | |
1720 | 1738 | | |
1721 | | - | |
| 1739 | + | |
| 1740 | + | |
1722 | 1741 | | |
1723 | 1742 | | |
1724 | 1743 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
218 | 229 | | |
219 | 230 | | |
220 | 231 | | |
| |||
0 commit comments