~mepsql-committers/mepsql/mysql-5.1

Viewing all changes in revision 3549.

  • Committer: Nirbhay Choubey
  • Date: 2011-01-13 10:26:42 UTC
  • Revision ID: nirbhay.choubey@sun.com-20110113102642-4i7chbqdhq7gj55e
Bug#59109 : mysqlslap crashes on mysql_fetch_row after ignoring
            null from mysql_store_result.

mysqlslap segfaults at a point when it tries to fetch rows from
the result set.

Under some circumstances, mysql_store_result can return 'NULL',
even after query execution (mysql_query) succeeds, and eventually
a segfault might occur if same unchecked return value is passed
to mysql_fetch_row.

Fixed by adding a check on mysql_store_result's return value.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: