2016-05-04 15:50 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/rtl/hbsocket.c
    ! fixed very bad typo which caused buffer overflow on 32bit
      platforms using poll() instead of select() in hb_socketSelect()
This commit is contained in:
Przemysław Czerpak
2016-05-04 15:50:31 +02:00
parent 0f93e22120
commit 88fc3b1579
2 changed files with 6 additions and 1 deletions

View File

@@ -10,6 +10,11 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2016-05-04 15:50 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbsocket.c
! fixed very bad typo which caused buffer overflow on 32bit
platforms using poll() instead of select() in hb_socketSelect()
2016-05-04 13:29 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/gtwin/gtwin.c
! strip ALT+CTRL and ALTGR from extended keycode when these modifiers

View File

@@ -3044,7 +3044,7 @@ int hb_socketSelect( PHB_ITEM pArrayRD, HB_BOOL fSetRD,
}
if( ncnt > 0 )
pfds = ( struct pollfd * ) hb_xgrab( ncnt * sizeof( struct pollfd * ) );
pfds = ( struct pollfd * ) hb_xgrab( ncnt * sizeof( struct pollfd ) );
for( i = 0; i < 3; i++ )
{