Make all string conversion functions safer

Bug #1082884 reported by Andrew Hutchings
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle Client & Protocol Library
Fix Released
Medium
Andrew Hutchings

Bug Description

All string functions need a max to length parameter. So:

drizzle_safe_escape_string becomes drizzle_escape_string
drizzle_hex_string adds a parameter
drizzle_mysql_password_hash adds a parameter

Related branches

Revision history for this message
Andrew Hutchings (linuxjedi) wrote :

actually only matters for escape_string, the others have fixed return lengths. That said the return type for drizzle_hex_string only needs to be bool

Changed in libdrizzle:
status: Triaged → Fix Released
status: Fix Released → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.