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

@@ -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++ )
{