/
CHANGES
2645 lines (1702 loc) · 81.9 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Changes since Pike 7.8.700 (fourth 7.8 release):
----------------------------------------------------------------------
o Core:
- Improve robustness against outputting wide strings.
master()->handle_error() now survives if, for example, an object has
an _sprintf() that returns a wide string.
master()->compile_{error,warning}() now survive messages about
wide symbols.
Made a similar fix in Hilfe to survive compiler warnings and
errors about wide symbols.
Fixes [bug 6805].
- Avoid recursion on the C-stack, to avoid running out of C-stack when counting
huge argument lists.
Fixes [bug 6860].
- do not use alloca in sprintf()
This fixes a stack corruption bug which occurs when using certain compilers
(e.g. msvc).
- Pike.gc_parameters(): Added some gc callbacks.
Adds callbacks that are called from the gc to simplify
debugging of memory leaks and similar.
- Improvements in searches on wide strings.
- Fixed padding bug in string_builder_append_integer().
The support for left padding was broken, and would always
add the full padding string and also would add erroneous left padding
if the field was full.
This bug also affected sprintf().
- Fixed Coverity Scan IDs [SCAN 742690] [SCAN 742691] [SCAN 742477]
o Debug:
- activate __CHECKER__ and CLEANUP when --with-valgrind
- Get rid of some harmless valgrind warnings
o Build:
- Fixed --enable-dlmalloc on systems with struct mallinfo.
- Improved support for building with clang.
- New RPM definition for Pike 7.8 originally based on spec from repoforge.
- Build improvements on Windows/sprshd (avoiding I/O redirection).
- Enable the full address space on NT.
The default address space on NT is just 31 bits. Attempt to
get the linker to enable the full addressspace.
- Don't execute $CFLAGS as a command
- Add -mcpu=niagara to CFLAGS on sun4v
- Disable machine code when compiling using GCC 4.6.0 and above, to avoid
a broken machine code generator.
- Adopted Gz configure checks to work with/accept zlib 1.2.12 changed
behaviour.
o Threads:
- Fixed hang in co_wait_interpreter().
co_wait_interpreter() would hang (waiting for threads to be
reenabled) if called in a disabled_thread context. This happens
on OSes using USE_WAIT_THREAD (eg Solaris) if a process is waited
on in a disabled_thread context.
o Backend:
- Improved thread safety in find_call_out() et al.
backend_find_call_out() called is_eq() (which may call Pike code
and release the interpreter lock) in a PROTECT_CALL_OUTS() context.
This could cause call_out operations performed in other threads to
either (no debug) mess with the hash table being traversed or (with
debug) cause the fatal "Recursive call in call_out module.".
- Fixed typo in out of band data handling.
Fixes [LysLysKOM 20481103]/[Pike mailing list 13683].
o Bug-fixes and New Methods in Modules:
ADT:
- Fix initialization bug in CircularList.allocate().
Fixes LysLysKOM 20179471/Pike mailinglist 13520.
- Working int32/SWord in Struct.
Calendar:
- Improve reentrancy of Timezone.compile().
The runtime timezone compiler was not thread safe, and could
fail with the compiler error "Undefined identifier forever."
when multiple concurrent threads compiled the same timezone.
Potentially fixes [bug 6816] #1:1.
- Fixed bug where the month was lost with %a to Calendar.parse.
Crypto:
- RSA: generate_key() now ensures that the key has the correct size.
Fixes [bug 6620].
- Added module Crypto.Password, for easy handling of password hashes.
- MD5: Added crypt_hash().
- SHA: Added the crypt_hash() function from SHA-crypt.
This implements the hashing function used in modern POSIX
operating systems. Implemented from the reference document
http://www.akkadia.org/drepper/SHA-crypt.txt
Database:
- Enable Oracle 11
- Improved compatibility with newer versions of FreeTDS ODBC driver. Fetch
date types as fixed length as a workaround for bugs in FreeTDS.
- Support the MariaDB client library.
The MariaDB client library is a forward port of the LGPL
mysql client library from MySQL 3.23 to support modern
MySQL and MariaDB.
- Potential workaround for race-condition in Mysql.create().
It seems mysql_real_connect() and/or mysql_close() aren't
fully thread-safe. The bug has been observed as recently as in
MySQL 5.5.30.
Errors: Improved emulation or arrays in object errors.
Implement _sizeof(), _indices() and _values() in the generic error class.
Fixes "Index 2 is out of range 0..1." from describe_backtrace().
GTK2:
- Add connect_before option to signal_connect so you can connect the signal
before or after the default hooks.
- Fixed infinite loop in encode_truecolor_24_rgb_al32().
- Fixed various issues in get_doc() et al.
- Change gobject signal connect to before instead of after.
- Fix a refcounting crash in GDKEvent.
- Pass arguments to accel_group callbacks separately rather than as
one array.
- Call the correct callback when an accelerator is hit.
- TreePath: Query the depth for get_indices() rather than looking for
a terminator.
- Add a signal_stop() method to prevent signal propagation.
Image:
- Fonts: Add PS_NAME attribute in info mapping if possible.
Needed to facilitate compatibility with code relying on behaviour of
older versions of FreeType.
- Fonts: Enhanced compatibility with newer versions of FreeType.
- JPEG: Disable the module if empty
- Add basic CMYK/YCCK support to Image.JPEG.decode(). Fixes [bug 6163].
- ColorTable: Fixed some memory leaks in add().
- XPM: Fixed memory zapping bug in _xpm_write_rows().
- Handle orientation information contained in JPEG EXIF information.
Since the default processing of JPEG in Image.JPEG was changed to
take EXIF Orientation into account, let's update Image.Dims to also
take that into account, so it correctly predicts the dimensions that
will result from loading the image.
Added Pike-level wrappers to Image.JPEG.decode() and Image.JPEG._decode()
in order to flips/rotates the decoded image based on EXIF Orientation
information, if such information is present. Also added an
Image.JPEG.raw_decode() to decode an image without rotating/flipping,
which works much like Image.JPEG._decode() did before overloading the EXIF
handling.
- Add support for native PSD files in Standards.IIM.
- Do not crash when decoding certain PNG files [TURBO2-80].
Java:
- Improve diagnostics on failure on NT.
- Attempt to support loading of Java 6 and 7 on NT.
-Use SetDllDirectory() to find required dlls. Fixes [bug 6471].
Oracle's jvm.dll has dependencies on runtime libraries that it doesn't
install in the global dll path or in the same directory. This patch
adds the directory where they do install the required dlls to the dll
search path, with a fallback to using the current directory on older NT.
The main change in this patch is to fix some calling-convention bugs in
earlier attempts, and to use the Unicode APIs.
Parser.XML:
- Tree: Fixed several issues in namespace handling.
- Tree: Fix some regressions. Fixes InfoKOM 731715.
- Tree: Improved namespace handling in default mode.
Process:
- Fixed multiple issues with search_path().
- Unified handling of $PATH.
* Added path_separator.
* search_path() now invalidates the cached path if $PATH is changed.
* search_path() now uses locate_binary() to scan the path.
* Moved an __NT__ special case from locate_binary() to search_path().
* spawn_pike() now uses search_path().
Protocols.DNS:
- Destruction of server now results in port closure.
- Support multiple strings per TXT record in the client, via new txta
mapping entry.
- Derived classes can now override report_decode_error() and
handle_decode_error() to change how errors while decoding a
DNS packet are reported and handled.
Protocols.HTTP:
- Don't modify the mapping sent to response_and_finish.
Unsuspecting users that pass a constant mapping to
response_and_finish when a particular error occurs (or when a
particular URL is requested) can fail if response_and_finish
alters the mapping. For example, future requestes may retain a
416 error if one request uses the Range: header.
- Support async keep-alive in Protocols.HTTP.Query. Fixes [bug 7143].
Protocols.SMTP: send_message() now punicodes the hostname.
Potential fix for [bug 6531].
Protocols.SNMP: Fixed error in GetRequest variable bindings.
The variable value should be ASN1 "Null" rather than a bogus integer.
C.f. RFC 1905 section #3.
Postgres.postgres_result:
Now properly decodes binary blobs and strips trailing spaces
from CHAR columns.
Sql.rsql:
- Implemented generic proxy of functions.
- Implemented support for all big_query() variants.
- This implements support for big_typed_query(), streaming_query()
and streaming_typed_query().
- Implement {get,set}_charset().
- Default to not reconnect on broken connection.
This behaviour is in line with the other SQL modules,
and is necessary to avoid corruption due to lost state.
- Implement ping() API.
ping() now signals if any part of the connection was reconnected (1),
or has been broken (-1).
- Fix reconnect code.
The state-machine on the client side when the rsqld server
died was broken in several ways. It now seems to work.
- Implemented insert_id().
SSL:
- Attempt to protect against some timing attacks.
Move around some code and attempt to get it to execute in constant time.
This is in an attempt to alleviate the "Lucky Thirteen" TLS attack.
- sslfile: Avoid rescheduling the ssl_read_callback on no read_callback.
This could lead to call_out loops taking 100% cpu, since no data would
be read from the read_buffer.
Potential fix for [bug 6582].
- sslfile: Added linger().
Implemented linger() API. The linger time is propagated to the raw
socket, and additionally a linger time of zero inhibits sending of
the close packet.
Stdio:
- cp() detects ouroboros and avoids infinite loops and file truncation.
- Reduce number of system calls in mkdirhier().
- Call fd_select() before fd_accept() in my_socketpair() to make sure it's ready.
Added support for poll() to the fd_accept() check in my_socketpair() and
lowered the select() timeout.
- Added linger(), to change the linger time on sockets.
- Fixed a bug in Stdio.FakeFile::read_function() where read data wasn't returned.
- Open files in binary mode, for systems that care (OS/2, etc).
Standards:
- Standards.EXIF supports rationals with a zero denominator.
The denominator may be zero to indicate infinites.
Fixes [bug 6729].
ZXID: Update the zxid_conf::path_len field.
Fixes [roxen.com #16333] where assertion data was lost after the redirect.
Web.CGI.Request: rest_query may be zero. Fixes [bug 6685].
Changes since Pike 7.8.352 (third 7.8 release):
----------------------------------------------------------------------
Extensions and New Functions
----------------------------
o Added module ZXID
This module provides an interface to the ZXID Identity Management
toolkit, which implements (among other tasks) the SAML 2.0, Liberty
ID-WSF 2.0, and XACML 2.0 protocols.
o Added module Search.
This module implements a free text search database. It needs some
indexed storage, and there is a storage backend for use with MySQL.
There is support for indexers with filters for different document
types. The query support includes metadata and date range searches.
It is the core of the search functionality that is used in the
commercial Roxen products, so it has been in production use for
quite some time already.
o Typed query result support in Sql.Sql and in the MySQL module.
Traditionally the SQL glue has returned all types of data as
formatted strings with their display representations. Now there are
new so-called "typed" variants of the query functions (typed_query,
big_typed_query, and streaming_typed_query in the Sql.Sql class)
that instead return the data as the appropriate pike native types,
e.g. pike integers for SQL integers, pike floats for SQL floats,
etc.
This requires support by the DB server specific backends, which is
currently limited to the MySQL glue.
o has_prefix now works on objects.
o Standards.JSON
New module for encoding and decoding JSON data. Implemented in C.
o Val
New module to contain some global special objects that are shared
between other modules. There is e.g. a Val.null object which is used
both by the Sql module to represent SQL NULLs in typed mode, and by
Standards.JSON to represent the null value.
o Protocols.HTTP.Session will no longer override an existing
content-type header in async_do_method_url.
o Protocols.HTTP
Allow directly specifying the body of a POST request (needed for the Google
Apps API).
A more complete list of response codes and descriptions is included and used.
Query includes proxy support for GET (http/https) and POST (https) in both
sync and async mode.
Query exposes close() so you do not have to wait for garbage collection.
Server adds Basic Range support.
o Regexp.PCRE.replace() adds support for capture groups.
o Updated timezone data to tzdata2010o.
o String.normalize_space
New and efficient C implementation; sanitises whitespace, even in wide
strings.
o String.trim_all_whites
Extended to the entire range of Unicode white spaces. (And is faster.)
o Tools.PV and pike -x pv now work with GTK2 as well as GTK.
o Integer constants exported by modules can now be used in cpp expressions.
o Modules/programs that have the constant "dont_dump_program" will not
be dumped on installation. This is used to prevent dumping of
programs that check for external dependencies at compile time such
as the MySQL module.
o Added Thread.Queue.peek_array.
o Fixed stack overrun bug in Nettle.CBC and Nettle.Proxy. This is not
believed to have been a security issue.
o System
Added getloadavg() on platforms that support the getloadavg() call.
Added cross-platform get_home() and get_user() wrappers.
Added GetUserName() for Windows systems.
o SSL
Added support for AES to SSL3, and fixed bug that prevented some
handshake failure alerts to be sent to the client.
Implemented RFC 5746 "TLS Renegotiation Indication Extension".
Support parsing of Hello Extensions (RFC 5246 7.4.1.4).
o Stdio
New methods in Stdio.File:
set_callbacks() and query_callbacks() for handling several callbacks at
once.
send_fd() and receive_fd() allow file descriptors to be sent and received
over UNIX-domain sockets.
The type for Stdio.Fd.create() is now as documented.
Stdio.Terminfo contains a new class, MetaTerminfoDB, that merges several
terminfo directories.
Stdio.File()->query_address() now knows about IPv6-mapped IPv4 addresses.
Added some extra magic to Stdio.File()->connect() when mixing IPv4 and IPv6
addresses.
o ADT.Heap->values and ->num_values can now be overloaded.
o Added support for binding a Protocols.DNS server to multiple port/interface
combinations.
o Support for asynchronous DNS query replies in Protocols.DNS.
o Calendar
dwim_time() should know how to parse ISO 8601 timestamps.
Added Calendar.Greek.
o Process
Process.spawn(), popen() and system() et al now use Process.Process.
Process.Process adds support for spawning processes via forkd.
Process.spawn_pike() can now optionally pass predefines as well as
program and include path arguments.
Process.spawn_pike() should also be more reliable on Windows.
o Added functions to access the numerator and the denominator of a Gmp.mpq.
o Added lower level functions Tools.X509.[dr]sa_sign_key(). This makes it
easier to create hierarchial certificates.
make_selfsigned_[dr]sa_certificate() now use the corresponding
[dr]sa_sign_key().
o Added SSL3.sslfile.{set,query}_callbacks() as per Stdio.File.
o Added the !-modifier for sscanf().
o Added Int.reflect().
o Image.Dims adds support for Photoshop files.
o Added Gmp.encode_json().
o Added Thread.Queue.peek_array.
o Add System.getloadavg() on platforms that support the getloadavg() call.
o Pike.Backend has reinstated call_out memory usage, and a new function,
Pike.DefaultBackend.get_stats() for viewing this data.
o Locale.Charset now supports encoding and decoding UTF32.
o Added Sql.Sql()->is_open() and Sql.Sql()->ping(). Note that
your chosen database module must support these (Mysql and pgsql
currently do).
o MIME.ext_to_type() now knows about most all popular mime types (including
~700 new entries).
Optimizations
-------------
o MIME should now use 1/3 less memory when decoding big messages.
o Nettle.hash
Avoid allowing threads during hashing of small strings (current threshold
is 1 MB). This change improves ApacheBench numbers ~20% for a Roxen
benchmark on a quad-core Core i5.
o String.trim_all_whites is 10% faster and includes all Unicode.
o Improved performance of Process.run when threads aren't supported.
o Locale.Charset improves performance of encoders when replacement is active
by a few magnitudes.
o pike -x pmar_install can install from an http/s url, supports gzipped
archives, md5 hash checking and better uninstall support on Windows.
o Monger
Monger (pike -x monger) can now install pmar (pre-built module archives)
from the module repository, when available (particularly useful on Windows).
Monger can also download and build from a module's source repository (svn,
hg, git) when specified in the Pike module repository (modules.gotpike.org).
Deprecations
------------
o The libpq based old Postgres driver is now deprecated. The new pgsql
driver is faster, better tested, more stable, maintained, has more
features, does not depend on external libraries and is less filling.
o Stdio.File: << is deprecated.
Incompatible changes
--------------------
o Signal handlers in GTK2 do no longer get their arguments in the
form of an array. The prototype for a signal handler which was
previously e.g.
int query_tooltip(GTK2.Widget w, array(mixed) params, mixed callback_arg)
now becomes
int query_tooltip(GTK2.Widget w, int x, int y, int keyboard_tooltip,
GTK2.GObject tooltip, mixed callback_arg)
Bug fixes
---------
o Architecture/OS specific:
- Fixed segfault in combine_path_nt on windows when the first char
of an appended path is wide.
- Stdio.cp should now work on directory trees on Windows.
- Fixed bug that caused file_stat on Windows NT to not return a result
on certain non-FAT filesystems. Fixes bug 6432.
- Fixed a root directory check in Stdio on Windows NT. Fixes bug 3759.
o Calendar module:
- Fixed backward compatibility for Calendar.iso_name() and
Calendar.iso_short_name().
- Fix evaluation order for Calendar.YMD.`+().
- Fixed problem with Calendar.month_from_yday() when applied on week
53. [bug 5303]
o Compiler:
- Fixed issue where a stale pointer into the identifier table could
sometimes be dereferenced when defining getters and setters.
- Fixed NULL-deref for compilation errors in range expressions.
- Fixed bug that prevented the literal zero from being considered a constant.
- Fixed fatal error in the constant expression evaluator of the
compiler for certain code.
o Documentation:
- Added Autodoc support for new-style getter and setter syntax.
- Fixed support for documenting arguments to implicit create().
o Graphics:
- Fixed leak in the PNG decoder for images with tRNS chunk.
- Fixed several issues related to lables on the X and Y axises
and the calculation of xmaxvalue for the bars/line/linear case
in Graphics.Graph.
- Fix integer underflow in Image.JPEG. Fixes [bug 6413].
o I/O:
- Support undocumented OS behaviour on out-of-band data returning
EOPNOTSUPP and ECONNRESET when a stream is half closed.
The undocumented behaviour is found on (at least) 2.6.x Linux
and FreeBSD 7.x and 8.x.
- Stdio.{write,append}_file() now throw errors in ALL failure modes.
- Stdio.File()->query_address() should return a correct errno when given
a socket with an invalid protocol family.
- Stdio.File()->file_peek() now refrains from releasing the interpreter
lock if there's no timeout.
o Protocol modules:
- Fixed backtraces when Protocols.HTTP.Query objects where garbage
collected. [bug 5730]
- Multiple multipart file submissions in Protocols.HTTP.Server will be
preserved as suggested by HTML5.
- Protocols.HTTP.Query fixes broken state when open_socket() has thrown
an error.
- Tools.Standalone.httpserver has fixed entity encoding. Makes files
with spaces in them accessible.
- Protocols.HTTP Sets the content-length header for zero-length data.
Fixes [bug 5936].
- Protocols.HTTP.Query uses content-length instead of content_length.
The latter will be corrected in the encode method, but is problematic
when that function is overridden.
- Protocols.HTTP.Query filters weak SSL-ciphers rather than explicitly
listing strong ones.
- Protocols.HTTP includes some close, state reset and keep-alive handling
fixes.
- Fixed so than an existing content-type is not overriden in
async_do_method_url.
o Runtime:
- Use nanosleep() when available instead of poll or select hacks for
the Pike-level sleep() function.
- Fixed a segfault occuring if exit() is used from a thread when
the Pike runtime has been compiled with cleanup-on-exit enabled.
- Fixed bug in new_check_call(). Fixes [bug 6442].
- Prevent short disablements of the gc from affecting gc intervals.
o sprintf:
- Fix a buffer overrun when formatting Gmp.mpz as floats if the precision
exceeds the number of digits.
- Ensure that decimal points are used when floats are formatted
in casts etc. Previously the float formatting in casts and in
sprintf("%O",...) were susceptible to locale settings and could
therefore use something other than a '.' as decimal separator.
Note that sprintf("%f",...) is still locale sensitive.
o Sql database modules:
- Fixed memory leak on out of memory in Mysql.fetch_json_result().
- Fixed locking problem in Mysql.
- Fixed dangling cache reference in prepared statements when using CREATE
statements via Sql.pgsql.
- Fixed broken (auto-re-) connect logic in Sql.pgsql.
- Support all text queries in Sql.pgsql.
- Fixed rare string corruption in Sql.pgsql.
o SSL/TLS:
- Fixed bugs in handling of abrupt SSL3 remote close. sslfile now also
triggers EPIPE errors if the user attempts to read or write to a
connection that has been abruptly closed (to detect truncation
attacks better).
- Fixed issue where SSL3 async_client objects became garbage even
after close().
- Tools.X509 uses a unique serial number for each selfsigned certificate.
Firefox otherwise complains about serial number clashes.
o Misc:
- System.normalize_path no long fails for files with 8-bit chars in
their names.
- Improved widestring support for Parser.Tabular.
- Fixed a problem in "pike -x module" that prevented auto tools from
running in the correct directory.
- Fixed issue where GTK objects weren't destroyed properly.
http://pike.ida.liu.se/docs/tutorial/hello/window.xml now
works again.
- Fixed encoding/decoding bug in "pike -x httpserver" that prevented
files with space in the name from being accessable.
- Parser.XML.Tree contains fixes for add_child_before() and add_child_after().
- Parser.Tabular fixes support for Stdio.File objects. For example:
Pike v7.8 release 468 running Hilfe v3.5 (Incremental Pike Frontend)
> Parser.Tabular(Stdio.File("data.csv"), Stdio.File("format.csv"));
- Fixed return value from Regexp.PCRE.exec to always have entries for all
submatches.
- Fuse has fixed support for readlink().
- Fixed infinite loop in Audio.Format when reading MP3 frames.
- Added path to pike binary in pike -x module used by verify targets.
Should also fix problems installing modules using pike -x monger.
- Reduce optimization in gethostby{addr,name} that could cause
overzealous caching or results.
Building, installing and developer tools
----------------------------------------
o Fixes to allow Regexp.PCRE to compile against recent versions of PCRE lib.
o Fix Gz module build on recent Gentoo Linux.
o Fixed some library searchpath issues.
o Some potential fixes for --enable-pikelib mode on platforms had
problems with the final linking.
o Some issues with the support for building modules needing
a C++ compiler have been fixed.
o Made it possible to override $(OS) with an environment variable
$PIKE_BUILD_OS.
o Check for configure scripts built with pre-propagated_variables pike.
o Added Nettle/config.guess that knows about MaxOS X and x86_64.
o Fix broken detection of libjpeg lossless transformation support.
o Installer will no longer dump sql driver files that depend on
system libraries.
o Fixed support for --without-threads.
o Fix to make dump.pike dump itself just like any other module class.
o Improved support for LIBPIKE.
o Added PIKE_CORE define to detect when not compiling a module.
o Improved support for autoconf 2.6x.
o Ensure that --with-rtldebug enables assertions.
o Configure script now attempts to set up the PKG_CONFIG_PATH.
o Updated the ABI selector for MacOS X. Default to attempting the compiler
default ABI (instead of forcing 32-bit ABI).
o CMOD Enhancements
Tools.Standalone.precompile supports ranges for strings and negative
int(low..high) bounds.
Fixed bug in generate_overload_func_for() when there are alternatives
accepting zero arguments.
o Tools.Testsuite:
Added some functions to make pretty logging in tests easier.
Tools.Standalone.test_pike passes the verbosity level in an environment
variable TEST_VERBOSITY to subtests.
Tools.Testsuite accumulates multiple result reports.
Changes since Pike 7.8.316 (second 7.8 release):
----------------------------------------------------------------------
General
-------
o ADT.Heap
The compat functions top() and size() are now marked as deprecated.
Extensions and New Functions
----------------------------
o Image.Image
Added support for sending Color objects to the color() function.
o Sql.Sql
Added support for fetching result sets as JSON-encoded strings.
o Calendar
Updated timezone data to 2009j.
o Parser.XML.Tree
Output from render_xml() is now on canonical form.
o Added "pike -x httpserver" that implements a minimal HTTP-server
exporting the current directory.
Optimizations
-------------
o Lowered startup time by extending encode_value() and MasterCodec so
that master.pike can be precompiled.
o Lowered startup time by reducing the number of MEMSET() calls done
on startup.
o Allow threads while calling SDL_GL_SwapBuffers.
o Added optimization of has_value() and search() for single-character strings.
o Added optimization when combining two arrays where the second array
contains a single item.
Bug fixes
---------
o Fixed casting of floats to strings to again work more like in Pike
7.6 and earlier: The string will always contain either a "." or an
"e" to signify that it is a float, and it will no longer display so
many digits that the binary/decimal conversion errors become
visible.
o Protocols.HTTP.Server.HeaderParser will now discard parts of a
header value if the header value contains a newline (like "Host:
google.com\n.hax.net\r\n") and headers without colon.
o file_open_socket() now attempts to set SO_REUSEPORT on the socket.
Potentially fixes issues on FreeBSD 7.x where ports aren't reused.
o Calendar.TimeRanges now knows that `+() and `-() can get any number
of arguments.
o The experimental extended ZFS support is disabled since it pulled in
unwanted dependencies.
o Fixed propagation of changed module directories for joinnodes by
zapping the joinnode cache.
o Fixed memory leak in Image.WBF.
o Fixed potential NULL-deref in Image.XWD.
o Fixed potential NULL-deref in Image.PNG.
Building and installing
-----------------------
o Nettle 2.0 is now supported.
Changes since Pike 7.8.116 (initial 7.8 release):
----------------------------------------------------------------------
General
-------
o Sql.pgsql:
- Substantial documentation improvements.
o Stdio.Fd_ref is deprecated and in the process of being eliminated.
You have never used it before, so don't start using it now.
Bugfixes
--------
o Fixed bug in AGGR_ARR_EPILOGUE() (aka END_AGGREGATE_ARRAY()) that
caused the empty array to always be returned if there were no
unaggregated elements on the stack at END_AGGREGATE_ARRAY.
You are encouraged to upgrade just for this fix since the bug
creates very rare but (seemingly) random occurances of empty arrays.
o Fixed multiset_delete_node to work with destructed indices. This
fixes occasional bugs in various functions when there are destructed
objects in indices.
You are encouraged to upgrade just for this fix since the bug creates
(seemingly) random crashes that are hard to reproduce and track down.
o Fixed overzealous filtering of the value returned from Stdio.File()->mode().
This bug caused Stdio.nb_sendfile to always run in blocking mode.
You are encouraged to upgrade just for this fix since the bug can
cause supposedly nonblocking actions to block and hang the script.
o Fixed bug in the Odbc module on WIN32 where it would fail for some
field-types with the error "22003:Numeric value out of range".
o Sql.pgsql:
- Various small fixes and performance improvements.
- Fixed fully transparent UTF8/Unicode/wide string/character set support.
- Fixed formatting errors in error().
o Fixed bug when seeking backwards in Gz.File.
o Fixed bug in fd_stat on windows when used on a file system with a