[CONC-71] mysql_real_query crashes in revision 113 Created: 2014-01-28 Updated: 2014-02-04 Resolved: 2014-02-04 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Sudhindra Bhat | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
revision 113 |
||
| Description |
|
1)Connect to a mysql server after setting following options Here is a sample stack trace : _heap_alloc_base(unsigned int size) Line 55 C |
| Comments |
| Comment by Sudhindra Bhat [ 2014-01-29 ] |
|
in net.c function : my_net_read if ((packet_length = my_real_read(net,(size_t *)&complen)) == packet_error) line 827 : Hence len is never equal to packet_error and this function returns 0xfffffffc even if my_real_read returns packet error. in mthd_my_read_rows This loop is always true since pkt_len is always 0xfffffffc and not packet_error because condition in line 1231 : " if ((pkt_len=net_safe_read(mysql)) == packet_error) " is never true. |
| Comment by Georg Richter [ 2014-02-04 ] |
|
Fixed in revision 114 |