[CONC-619] NULL pointer dereference in unpack_fields (libmariadb) Created: 2022-11-18 Updated: 2023-05-02 |
|
| Status: | Open |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.1 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Yury Chaikou | Assignee: | Georg Richter |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
libmariadb/mariadb_lib.c
Even if row->data[i] is NULL we still continue condition evaluation and dereference NULL pointer in row->data[i][length]. Possibly || should be used instead of &&. |