Skip to content

Commit

Permalink
2016-05-04 15:50 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
Browse files Browse the repository at this point in the history
  * src/rtl/hbsocket.c
    ! fixed very bad typo which caused buffer overflow on 32bit
      platforms using poll() instead of select() in hb_socketSelect()
  • Loading branch information
druzus committed May 4, 2016
1 parent 0f93e22 commit 88fc3b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/rtl/hbsocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++ )
{
Expand Down

0 comments on commit 88fc3b1

Please sign in to comment.