Bug #47877 [Com]: ALERT - canary mismatch on efree() - heap overflow detected

From: Date: Thu, 10 Jul 2014 18:17:02 +0000
Subject: Bug #47877 [Com]: ALERT - canary mismatch on efree() - heap overflow detected
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186557@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=47877&edit=1

 ID:                 47877
 Comment by:         nelson dot ota at buonny dot com dot br
 Reported by:        leif at neland dot dk
 Summary:            ALERT - canary mismatch on efree() - heap overflow
                     detected
 Status:             No Feedback
 Type:               Bug
 Package:            MSSQL related
 Operating System:   Debian 5
 PHP Version:        5.2.9
 Block user comment: N
 Private report:     N

 New Comment:

I have changed mssql.datetimeconvert = Off and work for me!


Previous Comments:
------------------------------------------------------------------------
[2014-02-26 08:14:52] emirhanizmir at gmail dot com

I confirm that nick at ihighteam dot com ' s solution is OK. It solved like a charm.

------------------------------------------------------------------------
[2010-04-23 02:13:32] caesium at gmail dot com

nick at ihighteam dot com's solution works.

I have a rather large dataset I am iterating through and ran into this issue. I can confirm that
Nicks solution is a suitable workaround.

Thanks Nick!

------------------------------------------------------------------------
[2009-08-13 22:16:18] nick at ihighteam dot com

I found a solution here and it works for me!

http://www.nabble.com/-Bug-41297--NEW:-PHP-Suhosin-Patch-creates-a-problem-with-mssql_query%28%29-when-selecting-a-smalldatetime-field-td17693263.html

Steps to Reproduce:
1. Use the default configuration of PHP with the mssql-extension.
2. create a sql-statement that selects a smalldatetimevalue from a MSSQL-Database or use the Script
at the end of this report.
3. the Script dies in the mssql_query()-function

Solution:
I found the following solution that works for me:
1. Open /etc/php.ini
2. "Decomment" the line "mssql.datetimeconvert = On" and change it to
"mssql.datetimeconvert = Off"
3. Restart Apache
4. The Problem dissappears

------------------------------------------------------------------------
[2009-07-10 03:11:23] synec dot net at gmail dot com

I checked extension.ini and remove some lines.

#extension=oci8.so
#extension=recode.so
#extension=pdo_oci.so

and then works fine.

------------------------------------------------------------------------
[2009-07-10 02:30:53] synec dot net at gmail dot com

run 'php -v' on CLI.

ALERT - canary mismatch on efree() - heap overflow detected (attacker 
'REMOTE_ADDR not set', file 'unknown')

Install php v5.2.10 by FreeBSD ports.
Using options are 'CLI, CGI, APACHE, SUHOSIN, MULTIBYTE, IPV6, MAILHEAD, 
REDIRECT, DISCARD, FASTCGI, PATHINFO'

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=47877


--
Edit this bug report at https://bugs.php.net/bug.php?id=47877&edit=1


Thread (8 messages)

« previous php.bugs (#186557) next »