2017-04-22 21:22 UTC+0200 Aleksander Czajczynski (hb fki.pl)

* contrib/hbamf/amfenc.c
    ! fix trivial mistake in AMF3_ENCODE(), which broke string
      deduplication after hash with string-keys was serialized
      in object tree. The hash itself was serialized correctly
      because keys are by definition unique.
This commit is contained in:
Aleksander Czajczynski
2017-04-22 21:24:19 +02:00
parent ad1f113511
commit d89e99cbb0
2 changed files with 8 additions and 1 deletions

View File

@@ -10,6 +10,13 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2017-04-22 21:22 UTC+0200 Aleksander Czajczynski (hb fki.pl)
* contrib/hbamf/amfenc.c
! fix trivial mistake in AMF3_ENCODE(), which broke string
deduplication after hash with string-keys was serialized
in object tree. The hash itself was serialized correctly
because keys are by definition unique.
2017-04-20 10:01 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/3rd/zlib/*
* updated to version 1.2.11

View File

@@ -443,7 +443,7 @@ static HB_BOOL amf3_encode_hash( amfContext * context, PHB_ITEM pItem )
pVal = hb_hashGetValueAt( pItem, i );
if( HB_IS_STRING( pKey ) )
{
if( ! amf3_encode_string( context, pKey ) )
if( ! amf3_serialize_string( context, pKey ) )
return HB_FALSE;
if( ! amf3_encode( context, pVal ) )
return HB_FALSE;