History log of /PHP-5.3/ext/mysqlnd/mysqlnd_wireprotocol.c (Results 26 – 50 of 107)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# f9fe805a 03-May-2010 Andrey Hristov

Handle OOM in block_alloc_get_chunk, and also in the caller
in mysqlnd_wireprotocol.c


# 864f2da7 03-May-2010 Andrey Hristov

Remove unused parameter


# de4a5156 03-May-2010 Andrey Hristov

Handle OOM when resizing blocks during data fetch


# 9b468d95 29-Apr-2010 Andrey Hristov

Fix crash if OOM and USE_ZEND_ALLOC=0


# ad4b4296 28-Apr-2010 Andrey Hristov

Fixed few buffer overflows reported by Stefan Esser.


# 1838fcc7 28-Apr-2010 Andrey Hristov

const-ify fields


# 69152278 20-Apr-2010 Andrey Hristov

Hardening the reads of mysqlnd.
All packets but the row data packet are read into preallocated buffer,
either on the stack or on the heap (cmd_buffer). The size of the buffer
is always ch

Hardening the reads of mysqlnd.
All packets but the row data packet are read into preallocated buffer,
either on the stack or on the heap (cmd_buffer). The size of the buffer
is always checked to skip buffer overruns. Only up to the size of the
buffer is stored into the buffer but packet->header.size has the size of
all data sent. In this case network layer bails.

This patch hardenes the reads, so if packets are malformed and shorter
than they should be there will be no further reads in the buffer.
In short, detection of malformed packets.

show more ...


# efa0077e 20-Apr-2010 Andrey Hristov

put the trigger in the right place


# 804b9505 20-Apr-2010 Andrey Hristov

It is possible that change user tries an user who has old password.
Instead of error message that doesn't say much there is more information now.


# a175419f 20-Apr-2010 Felipe Pena

- Fix copyrights


# 664b2389 15-Apr-2010 Andrey Hristov

Last batch of int/uint comparison fixes


# 76d64590 15-Apr-2010 Andrey Hristov

More int/uint comparison warning fixes


# 6aa682f5 15-Apr-2010 Andrey Hristov

CS + WS changes


# dd9fc198 15-Apr-2010 Andrey Hristov

Fix for bug#49234 method not found ssl_set
Patch was tested and compiles on Windows. (Thanks Kalle)


# 3bd2faff 08-Apr-2010 Andrey Hristov

Fixint INT_AND_FLOAT_AS native. It was working ok on 64bit but
because on 32bit SIZEOF_LONG is 4 and INT64 from MySQL is 8 everything
was converted to string, even if it was able to put it in

Fixint INT_AND_FLOAT_AS native. It was working ok on 64bit but
because on 32bit SIZEOF_LONG is 4 and INT64 from MySQL is 8 everything
was converted to string, even if it was able to put it in a long.
This closes Request #50651 Native type cast returns wrong result

show more ...


# aa8f43fa 06-Apr-2010 Andrey Hristov

Recommit with an Windows build fix:
Fix inconsistencies
- memory allocated with spprintf, or likes, outside of mysqlnd's
allocator functions should not be freed by the mysqlnd's allocator

Recommit with an Windows build fix:
Fix inconsistencies
- memory allocated with spprintf, or likes, outside of mysqlnd's
allocator functions should not be freed by the mysqlnd's allocator
(a wrapper around emalloc/malloc).
- memory allocated by the mysqlnd's allocator should only be freed
by it.
- add a mode to track memory usage (malloc/free)

show more ...


# 96e2651f 01-Apr-2010 Pierre Joye

- revert revision 297277, break the builds (declaration must go 1st, size of void * and other known situations). Also Johannes, can you check that commit pls? Thought we were in bugs fixing only for

- revert revision 297277, break the builds (declaration must go 1st, size of void * and other known situations). Also Johannes, can you check that commit pls? Thought we were in bugs fixing only for 5.3

show more ...


# f534df71 01-Apr-2010 Andrey Hristov

Fix inconsistencies
- memory allocated with spprintf, or likes, outside of mysqlnd's
allocator functions should not be freed by the mysqlnd's allocator
(a wrapper around emalloc/malloc).

Fix inconsistencies
- memory allocated with spprintf, or likes, outside of mysqlnd's
allocator functions should not be freed by the mysqlnd's allocator
(a wrapper around emalloc/malloc).
- memory allocated by the mysqlnd's allocator should only be freed
by it.
- add a mode to track memory usage (malloc/free)

show more ...


# 94cd357f 29-Mar-2010 Andrey Hristov

Make it coupled - what is allocated with mnd_ should be freed
with mnd_ and vice versa.
Added mnd_pestrndup and mnd_pestrdup, which wrap the normal
calls to be able to track this calls.

Make it coupled - what is allocated with mnd_ should be freed
with mnd_ and vice versa.
Added mnd_pestrndup and mnd_pestrdup, which wrap the normal
calls to be able to track this calls.
Fixed some failing tests.

show more ...


# ec36ac16 26-Mar-2010 Andrey Hristov

Fix tests that fail when the MySQL's socket file is not /tmp/mysql.sock
as it is in when compiled from source and the default for mysqlnd.
SuSE for example uses /var/run/mysql/mysql.sock . Al

Fix tests that fail when the MySQL's socket file is not /tmp/mysql.sock
as it is in when compiled from source and the default for mysqlnd.
SuSE for example uses /var/run/mysql/mysql.sock . Also, sql.safe_mode
(ext/mysql and ingres) needs the socket.
Fix possible crashes in mysqlnd. When packets are shorter, functions should
return error.

show more ...


# ccfd9cd7 12-Mar-2010 Andrey Hristov

allow persistency of PS


Revision tags: php-5.3.2, php-5.2.13, php-5.3.2RC3, php-5.3.2RC2, php-5.2.13RC2
# 7b68aab2 01-Feb-2010 Andrey Hristov

Fix second bug in that code, + instead of += thus not increasing
a pointer and mangling data. Again, ext/mysql and ext/mysqli doesn't
have access to this codepath.


# befab3e8 01-Feb-2010 Andrey Hristov

Fix a bug in mysqlnd where a pointer was not incremented
and thus wrong data was saved MYSQLND_FIELD::db. However, this
wasn't caught because there is no code in mysql/mysqli/pdo_mysql
wh

Fix a bug in mysqlnd where a pointer was not incremented
and thus wrong data was saved MYSQLND_FIELD::db. However, this
wasn't caught because there is no code in mysql/mysqli/pdo_mysql
which reads that field of the structure. The problem was found
during code review.

show more ...


Revision tags: php-5.2.13RC1
# 176e6dd2 13-Jan-2010 Andrey Hristov

make mysqlnd's tracing API more reusable


# dc09fa81 11-Jan-2010 Andrey Hristov

more typedef cosmetics


12345