forked from ruby/ruby
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathChangeLog
18046 lines (11174 loc) · 607 KB
/
ChangeLog
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
Mon Mar 31 15:38:07 2014 Nobuyoshi Nakada <[email protected]>
* ext/openssl/ossl.c (ossl_make_error): check NULL for unknown
error reasons with old OpenSSL, and insert a colon iff formatted
message is not empty.
Mon Feb 24 12:42:01 2014 Zachary Scott <[email protected]>
* lib/open-uri.rb: [DOC] use lower case version of core classes, same
as commit r44878, based on patch by Jonathan Jackson [Bug #9483]
Mon Feb 24 12:42:01 2014 Zachary Scott <[email protected]>
* ext/ripper/lib/ripper/lexer.rb: [DOC] use lower case version of core
classes when referring to return value, since we aren't directly
talking about the class. Patch by Jonathan Jackson [Bug #9483]
Mon Feb 24 12:39:11 2014 Zachary Scott <[email protected]>
* ext/openssl/ossl_pkey_dh.c: Fixed typo by Sandor Szuecs [Bug #9243]
Mon Feb 24 12:33:38 2014 Zachary Scott <[email protected]>
* lib/net/smtp.rb: [DOC] Remove dead link to RAA by Giorgos Tsiftsis
Fixes the following bugs: [Bug #9152] [Bug #9268] [Bug #9394]
* lib/open-uri.rb: ditto
Sat Feb 22 19:14:25 2014 NAKAMURA Usaku <[email protected]>
* ext/io/console/console.c (console_dev): need read access for conout$
because some functions need it. [Bug#9554]
Sat Feb 22 10:09:42 2014 Eric Wong <[email protected]>
* ext/socket/ancdata.c (bsock_sendmsg_internal): only retry on error
(bsock_recvmsg_internal): ditto
* test/socket/test_unix.rb: test above for infinite loop
Sat Feb 22 09:51:53 2014 Shugo Maeda <[email protected]>
* ext/socket/init.c (wait_connectable): break if the socket is
writable to avoid infinite loops on FreeBSD and other platforms
which conforms to SUSv3. This problem cannot be reproduced with
loopback interfaces, so it's hard to write test code.
rsock_connect() and wait_connectable() are overly complicated, so
they should be refactored, but I commit this fix as a workaround
for the release of Ruby 1.9.3 scheduled on Feb 24.
[ruby-core:60940] [Bug #9547]
Sat Feb 22 09:26:05 2014 Nobuyoshi Nakada <[email protected]>
* class.c (rb_mod_init_copy): do nothing if copying self.
[ruby-dev:47989] [Bug #9535]
Tue Feb 18 22:53:34 2014 NAKAMURA Usaku <[email protected]>
* ruby_atomic.h: fixed merge mistake of r44946. reported by ngoto at
[ruby-dev:47980] [Backport #9530]
Mon Feb 17 18:04:40 2014 Aaron Pfeifer <[email protected]>
* thread.c (terminate_atfork_i): fix locking mutexes not unlocked in
forks when not tracked in thread. [ruby-core:55102] [Bug #8433]
Fri Feb 14 21:01:12 2014 NAKAMURA Usaku <[email protected]>
* ext/socket: revert r44943 because it causes errors on some linux
platforms.
Fri Feb 14 20:52:31 2014 NAKAMURA Usaku <[email protected]>
* configure.in (ARCH_FLAG): __sync_val_compare_and_swap_4 needs
-march=i486 on at least linux gcc 4.1.
Fri Feb 14 19:07:13 2014 Nobuyoshi Nakada <[email protected]>
* ruby_atomic.h (ATOMIC_PTR_EXCHANGE): atomic exchange function for
a generic pointer.
Fri Feb 14 19:07:13 2014 Masaki Matsushita <[email protected]>
* ruby_atomic.h: define ATOMIC_SIZE_CAS() with
__atomic_compare_exchange_n() and refactoring.
Fri Feb 14 19:07:13 2014 Masaki Matsushita <[email protected]>
* ruby_atomic.h: use __atomic builtin functions supported by GCC.
__sync family are legacy functions now and it is recommended
that new code use the __atomic functions.
http://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
* configure.in: check existence of __atomic functions.
Fri Feb 14 16:21:28 2014 NAKAMURA Usaku <[email protected]>
* ruby_atomic.h (ATOMIC_CAS): added.
* signal.c (ruby_atomic_compare_and_swap): ATOMIC_CAS implementation
for non-VC/gcc platform.
Fri Feb 14 15:56:27 2014 Tanaka Akira <[email protected]>
* lib/resolv.rb: Ignore name servers which cause EAFNOSUPPORT on
socket creation.
Reported by Bjoern Rennhak. [ruby-core:60442] [Bug #9477]
Fri Feb 14 15:54:57 2014 Tanaka Akira <[email protected]>
* lib/resolv.rb (Resolv::DNS::Message::MessageDecoder): Raise
DecodeError if no data before the limit.
Reported by Will Bryant. [ruby-core:60557] [Bug #9498]
Fri Feb 14 15:49:55 2014 Eric Wong <[email protected]>
* ext/json/generator/depend: add build dependencies for json extension
[Bug #9374] [ruby-core:59609]
* ext/json/parser/depend: ditto
Fri Feb 14 15:40:32 2014 Nobuyoshi Nakada <[email protected]>
* iseq.c (iseq_load): keep type_map to get rid of memory leak.
based on a patch by Eric Wong at [ruby-core:59699]. [Bug #9399]
Fri Feb 14 15:25:23 2014 Tanaka Akira <[email protected]>
* lib/resolv.rb (Resolv::DNS::Resource::TXT#data): Return concatenated
string.
Patch by Ryan Brunner. [ruby-core:58220] [Bug #9093]
Fri Feb 14 15:23:43 2014 Tanaka Akira <[email protected]>
* ext/socket: Avoid unnecessary ppoll/select on Linux.
Patch by Eric Wong. [ruby-core:57950] [Bug #9039]
Fri Feb 14 15:21:21 2014 Eric Wong <[email protected]>
* benchmark/driver: avoid large alloc in driver process
[ruby-core:59869] [Bug #9430]
Fri Feb 14 15:17:17 2014 Yusuke Endoh <[email protected]>
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
[ruby-core:57599] [Bug #8978].
Fri Feb 14 15:17:17 2014 Aaron Patterson <[email protected]>
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
[ruby-core:57599] [Bug #8978]. Thanks mame!
Fri Feb 14 15:04:36 2014 Nobuyoshi Nakada <[email protected]>
* thread_pthread.c (rb_thread_create_timer_thread): fix for platforms
where PTHREAD_STACK_MIN is a dynamic value and not a compile-time
constant. [ruby-dev:47911] [Bug #9436]
Fri Feb 14 15:04:36 2014 Nobuyoshi Nakada <[email protected]>
* thread_pthread.c (rb_thread_create_timer_thread): expand timer
thread stack size to get rid of segfault on FreeBSD/powerpc64.
based on the patch by Steve Wills at [ruby-core:59923].
[ruby-core:56590] [Bug #8783]
Fri Feb 14 14:58:19 2014 Nobuyoshi Nakada <[email protected]>
* eval.c (rb_mod_s_constants): return its own constants for other
than Module itself. [ruby-core:59763] [Bug #9413]
Fri Feb 14 14:40:27 2014 Masaki Matsushita <[email protected]>
* array.c (rb_hash_rehash): use hash_alloc() instead of rb_hash_new().
[Bug #9187]
Fri Feb 14 14:40:27 2014 Masaki Matsushita <[email protected]>
* hash.c (rb_hash_rehash): make temporary st_table under the control
of GC. [Bug #9187]
* test/ruby/test_hash.rb: add a test for above.
Fri Feb 14 14:40:27 2014 Masaki Matsushita <[email protected]>
* hash.c (rb_hash_rehash): fix to free new st_table when exception
is raised in do_hash(). [Bug #9187]
Fri Feb 14 13:51:45 2014 Eric Hodel <[email protected]>
* lib/optparse.rb: The Integer acceptable now allows binary and
hexadecimal numbers per the documentation. [ruby-trunk - Bug #8865]
DecimalInteger, OctalInteger, DecimalNumeric now validate their input
before converting to a number. [ruby-trunk - Bug #8865]
* test/optparse/test_acceptable.rb: Tests for the above, tests for all
numeric acceptables for existing behavior.
Fri Feb 14 12:52:50 2014 Kouhei Sutou <[email protected]>
* ext/socket/raddrinfo.c (nogvl_getaddrinfo): Fix indent.
Fri Feb 14 12:52:50 2014 Kouhei Sutou <[email protected]>
* ext/socket/raddrinfo.c (nogvl_getaddrinfo): Add missing return
value assignment.
Fri Feb 14 12:52:50 2014 NARUSE, Yui <[email protected]>
* ext/socket/raddrinfo.c (nogvl_getaddrinfo): work around for Ubuntu
13.04's getaddrinfo issue with mdns4. [ruby-list:49420]
Fri Feb 14 12:45:07 2014 NAKAMURA Usaku <[email protected]>
* lib/thread.rb (SizedQueue#clear): wake waiting threads when called.
[Bug #9342] [ruby-core:59462]
* test/thread/test_queue.rb: add a test for above.
patched by Justin Collins.
Thu Feb 6 09:06:00 2014 Kenta Murata <[email protected]>
* configure.in (POSTLINK): sign built program using RUBY_CODESIGN
identity.
[Backport #9491]
* Makefile.in (PROGRAM): ditto.
* Makefile.in (LIBRUBY_SO): ditto.
* lib/mkmf.rb (LINK_SO): sign extensions too. replace empty line with
default command.
* enc/depend (link_so): prefix $(Q) for each commands.
* tool/mkconfig.rb: restore embedded newlines.
Wed Feb 5 13:43:02 2014 Nobuyoshi Nakada <[email protected]>
* string.c (rb_str_modify_expand): enable capacity and disable
assocation with packed objects when setting capa, so that
pack("p") string fails to unpack properly after modified.
Sun Feb 2 05:48:42 2014 Eric Wong <[email protected]>
* io.c (rb_io_syswrite): add RB_GC_GUARD
[Bug #9472][ruby-core:60407]
Wed Feb 5 11:36:30 2014 NARUSE, Yui <[email protected]>
* configure.in (opt-dir): don't use non portable flag -E of sed.
Thu Jan 30 20:53:42 2014 Tanaka Akira <[email protected]>
* ext/socket/lib/socket.rb: Don't test $! in "ensure" clause because
it may be set before the body.
Reported by ko1 and mrkn. [ruby-core:59088] [Bug #9247]
* lib/cgi/core.rb: Ditto.
* lib/drb/ssl.rb: Ditto.
Thu Jan 30 20:31:32 2014 NARUSE, Yui <[email protected]>
* process.c (rb_daemon): daemon(3) is implemented with fork(2).
Therefore it needs rb_thread_atfork(). (and revert r41903)
Thu Jan 30 20:31:32 2014 Nobuyoshi Nakada <[email protected]>
* process.c (fork_daemon): kill the other threads all and abandon the
kept mutexes.
Thu Jan 30 20:31:32 2014 Nobuyoshi Nakada <[email protected]>
* process.c (fork_daemon): kill the other threads all and abandon the
kept mutexes.
Thu Jan 30 19:54:16 2014 Nobuyoshi Nakada <[email protected]>
* gc.c (finalize_deferred): flush all deferred finalizers while other
finalizers can get ready to run newly by lazy sweep.
[ruby-core:58833] [Bug #9205]
Thu Jan 30 19:08:00 2014 Nobuyoshi Nakada <[email protected]>
* gc.c (rb_gc_finalize_deferred, rb_objspace_call_finalizer):
should use ATOMIC_EXCHANGE() to check the previous value.
[ruby-dev:44596] [Bug #5439]
Thu Jan 30 19:08:00 2014 Nobuyoshi Nakada <[email protected]>
* gc.c (slot_sweep, rb_gc_finalize_deferred)
(rb_objspace_call_finalizer, rb_gc): run finalizers
sequencially. [ruby-dev:44562]
Thu Jan 30 11:07:09 2014 Nobuyoshi Nakada <[email protected]>
* ext/bigdecimal/bigdecimal.c (CLASS_NAME): macro to wrap
depending on PRIsVALUE for 1.9. [Backport #9406]
* ext/bigdecimal/bigdecimal.c (DECIMAL_SIZE_OF_BITS): fallback
definition for 2.1 or older. [ruby-core:59750] [Backport #9406]
Wed Jan 29 19:22:45 2014 NAKAMURA Usaku <[email protected]>
* enumerator.c: include internal.h instead of declaring the external
function there.
Wed Jan 29 18:52:09 2014 NAKAMURA Usaku <[email protected]>
* enumerator.c (enumerator_with_index_i): add the declaration of
rb_int_succ(). this fixes test failure on OS X introduced at r44745.
Wed Jan 29 14:44:44 2014 Nobuyoshi Nakada <[email protected]>
* ext/date/date_strptime.c (date__strptime_internal): unset
case-insensitive flag for [:alpha:], which already implies both
cases, to get rid of backtrack explosion. [ruby-core:58984]
[Bug #9221]
Wed Jan 29 14:44:44 2014 Nobuyoshi Nakada <[email protected]>
* ext/date/date_parse.c (parse_time): unset case-insensitive flag
for [:alpha:], which already implies both cases, to get rid of
backtrack explosion. [ruby-core:58876] [Bug #9221]
Wed Jan 29 14:26:10 2014 Nobuyoshi Nakada <[email protected]>
* enumerator.c (enumerator_with_index): should not store local variable
address to memoise the arguments. it is invalidated after the return.
[ruby-core:58692] [Bug #9178]
Wed Jan 29 14:26:10 2014 NARUSE, Yui <[email protected]>
* enumerator.c (enumerator_with_index): try to convert given offset to
integer. fix bug introduced in r39594.
Wed Jan 29 14:20:11 2014 Eric Hodel <[email protected]>
* enumerator.c (enumerator_with_index): Restore handling of a nil memo
from r39594.
Wed Jan 29 14:08:54 2014 Nobuyoshi Nakada <[email protected]>
* include/ruby/win32.h (rb_infinity_float): suppress overflow in
constant arithmetic warnings. [ruby-core:57981] [Bug #9044]
Wed Jan 29 14:08:54 2014 Nobuyoshi Nakada <[email protected]>
* win32/Makefile.sub (config.h): VC 2013 supports C99 mathematics
functions. [ruby-core:57981] [Bug #9044]
Wed Jan 29 14:00:15 2014 Nobuyoshi Nakada <[email protected]>
* compar.c (cmp_eq): fail if recursion. [ruby-core:57736] [Bug #9003]
* thread.c (rb_exec_recursive_paired_outer): new function which is
combinnation of paired and outer variants.
Wed Jan 29 13:40:48 2014 Eric Hodel <[email protected]>
* lib/net/smtp.rb (Net::SMTP#critical): Always return a
Net::SMTP::Response. Patch by Pawel Veselov.
[ruby-trunk - Bug #9125]
* test/net/smtp/test_smtp.rb: Test for the above.
Wed Jan 29 13:32:53 2014 Nobuyoshi Nakada <[email protected]>
* eval_jump.c (rb_exec_end_proc): unlink and free procs data before
calling for each procs. [Bug #9110]
Wed Jan 29 13:32:53 2014 Masaki Matsushita <[email protected]>
* eval_jump.c (rb_exec_end_proc): fix double free or corruption error
when reentering by callcc. [ruby-core:58329] [Bug #9110]
* test/ruby/test_beginendblock.rb: test for above.
Wed Jan 29 13:25:32 2014 Nobuyoshi Nakada <[email protected]>
* lib/resolv.rb (Resolv::Hosts#lazy_initialize): should not
consider encodings in hosts file. [ruby-core:59239] [Bug #9273]
* lib/resolv.rb (Resolv::Config.parse_resolv_conf): ditto.
Wed Jan 29 13:00:17 2014 Nobuyoshi Nakada <[email protected]>
* util.c (ruby_qsort): fix potential stack overflow on a large
machine. based on the patch by Conrad Irwin <conrad.irwin AT
gmail.com> at [ruby-core:51816]. [Bug #7772]
Wed Jan 29 12:54:13 2014 Nobuyoshi Nakada <[email protected]>
* parse.y (local_push_gen, local_pop_gen): save cmdarg_stack to
isolate command argument state from outer scope.
[ruby-core:59342] [Bug #9308]
Wed Jan 29 12:37:33 2014 Koichi Sasada <[email protected]>
* vm.c (rb_thread_mark): mark a working Proc of bmethod
(a method defined by define_method) even if the method was removed.
We could not trace working Proc object which represents the body
of bmethod if the method was removed (alias/undef/overridden).
Simply, it was mark miss.
This patch by Kazuki Tsujimoto. [Bug #7825]
NOTE: We can brush up this marking because we do not need to mark
`me' on each living control frame. We need to mark `me's
only if `me' was free'ed. This is future work after Ruby 2.0.0.
* test/ruby/test_method.rb: add a test.
Wed Jan 29 12:35:37 2014 CHIKANAGA Tomoyuki <[email protected]>
* lib/rexml/document.rb (REXML::Document.entity_expansion_text_limit):
fix a typo in comment in r39384.
Thu Jan 9 14:27:25 2014 Aman Gupta <[email protected]>
* test/net/imap/cacert.pem: generate new CA cert, since the last one
expired. [Bug #9341] [ruby-core:59459]
* test/net/imap/server.crt: new server cert signed with updated CA.
* test/net/imap/Makefile: add `make regen_certs` to automate this
process.
Sun Dec 22 14:25:54 2013 NAKAMURA Usaku <[email protected]>
* process.c (redirect_dup2): set standard handles when new fd is stdio,
because if there is no allocated console at the moment Windows does
not automatically associate it for child process's standard handle.
this is adhoc workaround.
reported by Martin Thiede at [ruby-core:48542] [Bug #7239].
Tue Dec 3 18:36:42 2013 Narihiro Nakamura <[email protected]>
* object.c (rb_obj_clone): protect FL_MARK of a dest object. A lazy
sweeper free up a dest object if a marker is invoked immediately
following allocate a dest object in rb_obj_alloc().
[Backport #9206]
Sun Dec 22 13:35:58 2013 NAKAMURA Usaku <[email protected]>
* lib/rubygems.rb: 1.8.23.2.
[ruby-core:58757] [Backport#9193] reported by Jeremy Evans and patched
by Eric Hodel.
Fri Nov 22 12:44:56 2013 Nobuyoshi Nakada <[email protected]>
* util.c (ruby_strtod): ignore too long fraction part, which does not
affect the result.
Fri Nov 1 00:08:21 2013 Martin Bosslet <[email protected]>
* test/openssl/test_pkey_ec.rb: Skip tests for "Oakley" curves as
they are not suitable for ECDSA.
[ruby-core:54881] [Bug #8384]
Fri Nov 1 00:04:17 2013 Marc-Andre Lafortune <[email protected]>
* parse.y: Remove +(binary) and -(binary) special cases
[Feature #9048]
Thu Oct 31 23:57:22 2013 Benoit Daloze <[email protected]>
* test/ruby/test_array.rb (test_count): add a test case for #count
with an argument. See Bug #8654.
Thu Oct 31 23:57:22 2013 Benoit Daloze <[email protected]>
* array.c (rb_ary_count): check length to avoid SEGV
while iterating. Remove other pointer loop when arg is given.
* test/ruby/test_array.rb (test_count): add test for bug.
[ruby-core:56072] [Bug #8654]
Thu Oct 31 23:57:22 2013 Masaki Matsushita <[email protected]>
* array.c (rb_ary_count): iterate items appropriately.
[Bug #8654]
Thu Oct 31 23:42:39 2013 Nobuyoshi Nakada <[email protected]>
* lib/tempfile.rb (Tempfile#unlink): finalizer is no longer needed
after unlinking. patched by by normalperson (Eric Wong) at
[ruby-core:56521] [Bug #8768]
Thu Oct 31 23:40:43 2013 Zachary Scott <[email protected]>
* lib/gserver.rb: [DOC] correct gserver.rb license [Bug #8913]
Thu Oct 31 23:35:12 2013 Nobuyoshi Nakada <[email protected]>
* vsnprintf.c (MAXEXP, MAXFRACT): calculate depending on constants in
float.h.
* vsnprintf.c (BSD_vfprintf): limit length for cvt() to get rid of
buffer overflow. [ruby-core:57023] [Bug #8864]
* vsnprintf.c (exponent): make expbuf size more precise.
Thu Oct 31 23:32:41 2013 Michal Rokos <[email protected]>
* configure.in (sys/pstat.h): fix missing header check for
missing/setproctitle.c on HP-UX. [ruby-core:56644] [Bug #8792]
Thu Oct 31 23:25:25 2013 Martin Bosslet <[email protected]>
* ext/openssl/ossl_pkey_ec.c: Ensure compatibility to builds of
OpenSSL with OPENSSL_NO_EC2M defined, but OPENSSL_NO_EC not
defined.
* test/openssl/test_pkey_ec.rb: Iterate over built-in curves
(and assert their non-emptiness!) instead of hard-coding them, as
this may cause problems with respect to the different availability
of individual curves in individual OpenSSL builds.
[ruby-core:54881] [Bug #8384]
Thanks to Vit Ondruch for providing the patch!
Thu Oct 31 23:22:35 2013 NAKAMURA Usaku <[email protected]>
* object.c (rb_obj_cmp): [DOC] patched by Keith Bennett
<kbennett AT verisign.com>. [ruby-core:57887] [Backport #9024]
Thu Oct 31 23:10:30 2013 KOSAKI Motohiro <[email protected]>
* test/dl/test_base.rb: {libc, libm} detection now handle GNU/Hurd
correctly. Patch by Gabriele Giacone ([email protected]).
[Bug #8937][ruby-core:57311]
* test/fiddle/helper.rb: ditto.
Thu Oct 31 23:05:33 2013 Tanaka Akira <[email protected]>
* lib/time.rb (Time.strptime): Time.strptime('0', '%s') returns local
time Time object as Ruby 2.0 and before.
Thu Oct 31 23:05:33 2013 Tanaka Akira <[email protected]>
* lib/time.rb (Time.strptime): Use :offset.
Patch by Felipe Contreras. [ruby-core:57694]
Thu Oct 31 22:49:56 2013 Nobuyoshi Nakada <[email protected]>
* io.c (rb_io_close_read): duplex IO should wait its child process
even after close_read.
Thu Oct 31 22:49:56 2013 Nobuyoshi Nakada <[email protected]>
* io.c (rb_io_close_read): keep fptr in write_io to be discarded, to
fix freed pointer access when it is in use by other threads, and get
rid of potential memory/fd leak.
Mon Sep 2 17:21:47 2013 Nobuyoshi Nakada <[email protected]>
* ext/date/date_parse.c (rfc2822_cb): check if wday is given, since it
can be omitted.
Mon Aug 19 18:36:37 2013 NAKAMURA Usaku <[email protected]>
* test/webrick/test_cgi.rb (TestWEBrickCGI#{start_cgi_server,test_cgi}):
mswin is not only mswin32 but also mswin64. [Bug #8746]
Mon Aug 19 18:34:31 2013 Charlie Somerville <[email protected]>
* test/openssl/test_ssl.rb: Fix test for CVE-2013-4073.
Patch by Antonio Terceiro. [Bug #8750] [ruby-core:56437]
Mon Aug 19 18:31:26 2013 Kazuhiro NISHIYAMA <[email protected]>
* parse.y: fix build error with bison-3.0.
Fri Aug 16 15:35:10 2013 Tadayoshi Funaba <[email protected]>
* ext/date/date_{core,strftime}.c: [ruby-core:46990].
Wed Aug 14 09:56:55 2013 Nobuyoshi Nakada <[email protected]>
* lib/mkmf.rb (have_framework): allow header file to check.
[ruby-core:55745] [Bug #8593]
Fri Aug 9 16:29:22 2013 Nobuyoshi Nakada <[email protected]>
* lib/mkmf.rb (xsystem): expand environment variable in all macros not
expanded with RbConfig. [Bug #8702]
* test/mkmf/test_framework.rb (create_framework): replace all $@ not
only once.
Fri Aug 9 15:59:22 2013 Nobuyoshi Nakada <[email protected]>
* parse.y (parser_peek_variable_name): treat invalid global, class,
and instance variable names as mere strings rather than errors.
[ruby-core:54885] [Bug #8375]
Fri Aug 9 15:59:22 2013 Nobuyoshi Nakada <[email protected]>
* parse.y (parser_yylex): fail if $, @, @@ are not followed by a valid
name character. [ruby-core:54846] [Bug #8375].
Fri Aug 9 15:56:05 2013 NAKAMURA Usaku <[email protected]>
* lib/net/http.rb (Net::HTTP#send_request_with_body_stream): use
String#bytesize instead of String#length.
reported by shekhei (shek hei wong) at [ruby-core:53775]
[Backport #8176].
Fri Aug 9 15:50:11 2013 NAKAMURA Usaku <[email protected]>
* win32/win32.c (wrename): use MoveFileExW instead of MoveFileW,
because the latter fails on cross device file move of some
environments.
fix [ruby-core:53492] [Bug #8109]
reported by mitchellh (Mitchell Hashimoto)
Thu Aug 8 16:09:26 2013 NAKAMURA Usaku <[email protected]>
* test/coverage/test_coverage.rb (TestCoverage#test_big_code): use `1'
instead of `p' to get rid of a side effect.
Kernel#p without any argument seems to do nothing, but flushes stdout.
and, if stdout is redirected to file, fsync() will be called on
Windows. so, when running test-all on Windows with redirection, such
as CI environment, this test took a lot of time.
Fri Aug 2 20:41:15 2013 Eric Hodel <[email protected]>
* ext/openssl/ossl_asn1.c (asn1time_to_time): Implement YYMMDDhhmmZ
format for ASN.1 UTCTime. [ruby-trunk - Bug #8664]
* test/openssl/test_asn1.rb: Test for the above.
Fri Aug 2 20:34:06 2013 Masaki Matsushita <[email protected]>
* io.c (io_getpartial): use rb_str_locktmp_ensure().
[ruby-core:56121] [Bug #8669]
* io.c (rb_io_sysread): ditto.
* test/ruby/test_io.rb: add tests for above.
Fri Aug 2 20:34:06 2013 Masaki Matsushita <[email protected]>
* string.c: add internal API rb_str_locktmp_ensure().
* io.c (io_fread): use rb_str_locktmp_ensure().
[ruby-core:56121] [Bug #8669]
* test/ruby/test_io.rb: add a test for above.
Fri Aug 2 20:03:39 2013 Nobuyoshi Nakada <[email protected]>
* rational.c (f_round_common): Rational is expected to be returned by
Rational#*, but mathn.rb breaks that assumption. [ruby-core:56177]
[Bug #8687]
Wed Jul 17 11:00:21 2013 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c: [ruby-core:46058].
Wed Jul 17 10:14:37 2013 Martin Bosslet <[email protected]>
* lib/openssl/ssl-internal.rb: Fix SSL client connection crash for SAN
marked critical.
The patch for CVE-2013-4073 caused SSL crash when a SSL server returns
the certificate that has critical SAN value. X509 extension could
include 2 or 3 elements in it:
[id, criticality, octet_string] if critical,
[id, octet_string] if not.
Making sure to pick the last element of X509 extension and use it as
SAN value.
[ruby-core:55685] [Bug #8575]
Thank you @nahi for providing the patch!
Wed Jul 17 09:59:33 2013 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c: fixed coding error [ruby-core:55337].
reported by Riley Lynch.
Wed Jul 17 09:59:33 2013 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c: fixed a bug [ruby-core:55295]. reported
by Riley Lynch.
Thu Jul 11 10:07:15 2013 Kenta Murata <[email protected]>
* ext/bigdecimal/bigdecimal.c (BigMath_s_exp): Fix for the cases when
the argument x is not a BigDecimal.
This change is based on the patch made by Heesob Park and Garth Snyder.
[Bug #6862] [ruby-core:47145]
[Fix GH-332] https://github.com/ruby/ruby/pull/332
Wed Jul 10 10:27:12 2013 NAKAMURA Usaku <[email protected]>
* include/ruby/intern.h (rb_path_next, rb_path_skip_prefix,
rb_path_last_separator, rb_path_end, ruby_find_basename,
ruby_find_extname): restore the declarations of these functions for
backword compatibility.
* filc.c (rb_path_next, rb_path_skip_prefix, rb_path_last_separator,
rb_path_end, ruby_find_basename, ruby_find_extname): implements
these functions as the wrapper of rb_enc_*().
Wed Jul 10 10:05:40 2013 NAKAMURA Usaku <[email protected]>
* include/ruby/intern.h (rb_f_lambda): restore the declaration of
rb_f_lambda() for backword compatibility.
Thu Jun 27 20:11:52 2013 NAKAMURA Usaku <[email protected]>
* ext/openssl/lib/openssl/ssl-inernal.rb (verify_certificate_identity):
fix hostname verification. Patched by nahi.
* test/openssl/test_ssl.rb (test_verify_certificate_identity): test for
above.
Wed Jun 26 18:28:29 2013 NAKAMURA Usaku <[email protected]>
* test/ruby/test_m17n.rb: assert_predicate and assert_not_predicate
is not available on 1.9.3.
Wed Jun 26 17:08:13 2013 Kazuki Tsujimoto <[email protected]>
* include/ruby/ruby.h, vm_eval.c (rb_funcall_with_block):
new function to invoke a method with a block passed
as an argument.
* string.c (sym_call): use the above function to avoid
a block sharing. [ruby-dev:47438] [Bug #8531]
* vm_insnhelper.c (vm_yield_with_cfunc): don't set block
in the frame.
* test/ruby/test_symbol.rb (TestSymbol#test_block_given_to_proc):
run related tests.
Wed Jun 26 17:01:22 2013 NAKAMURA Usaku <[email protected]>
* benchmark/bm_hash_shift.rb: add benchmark for Hash#shift
* hash.c (rb_hash_shift): use st_shift if hash is not being iterated to
delete element without iterating the whole hash.
* hash.c (shift_i): remove function
* include/ruby/st.h (st_shift): add st_shift function
* st.c (st_shift): ditto
[Backport #8328] [ruby-core:55250] Patch by funny-falcon
Wed Jun 26 16:52:57 2013 Kazuki Tsujimoto <[email protected]>
* test/ruby/test_proc.rb (TestProc#test_block_given_method_to_proc):
run test for r41359.
Wed Jun 26 16:52:57 2013 Kazuki Tsujimoto <[email protected]>
* include/ruby/intern.h, proc.c (rb_method_call_with_block):
new function to invoke a Method object with a block passed
as an argument.
* proc.c (bmcall): use the above function to avoid a block sharing.
[ruby-core:54626] [Bug #8341]
* test/ruby/test_proc.rb (TestProc#test_block_persist_between_calls):
run related tests.
Wed Jun 26 16:36:39 2013 Nobuyoshi Nakada <[email protected]>
* defs/id.def (predefined): add "idProc".
* proc.c (mnew, mproc, mlambda): use predefined IDs.
* vm.c (Init_VM): ditto.
Wed Jun 26 16:36:39 2013 Nobuyoshi Nakada <[email protected]>
* include/ruby/intern.h (rb_block_lambda): add declaration instead of
deprecated rb_f_lambda.
Wed Jun 26 16:31:49 2013 Shugo Maeda <[email protected]>
* lib/net/imap.rb (capability_response): should ignore trailing
spaces. Thanks, Peter Kovacs. [ruby-core:55024] [Bug #8415]
* test/net/imap/test_imap_response_parser.rb: related test.
Wed Jun 26 16:29:41 2013 Charlie Somerville <[email protected]>
* intern.h: remove dangling rb_class_init_copy declaration
[ruby-core:55120] [Bug #8434]
Wed Jun 26 16:22:12 2013 Charlie Somerville <[email protected]>
* class.c (include_modules_at): invalidate method cache if included
module contains constants
* test/ruby/test_module.rb: add test
Wed Jun 26 16:13:25 2013 Nobuyoshi Nakada <[email protected]>
* io.c (io_getc): fix 7bit coderange condition, check if ascii read
data instead of read length. [ruby-core:55444] [Bug #8516]
Wed Jun 26 16:10:01 2013 Eric Hodel <[email protected]>
* ext/socket/extconf.rb: Enable RFC 3542 IPV6 socket options for OS X
10.7+. [ruby-trunk - Bug #8517]
Wed Jun 5 12:38:14 2013 Nobuyoshi Nakada <[email protected]>
* win32/win32.c (setup_overlapped, finish_overlapped): extract from
rb_w32_read() and rb_w32_write().
Wed May 29 21:03:08 2013 Nobuyoshi Nakada <[email protected]>
* configure.in (POSTLINK): default to : command to get rid of flag
only command, since BSD make does not work with it.
Wed May 29 20:59:38 2013 NAKAMURA Usaku <[email protected]>
* lib/yaml.rb: documentation updates, patched by zzak.
[ruby-core:54735] [Backport #8356]
Wed May 15 14:04:39 2013 NAKAMURA Usaku <[email protected]>
* Makefile.in (miniruby): 1.9.3 doesn't have POSTLINK macro.
reported by Takahiro Kambe at [ruby-list:49362].
Wed May 15 01:06:26 2013 NAKAMURA Usaku <[email protected]>
* include/ruby/intern.h: should include sys/time.h for struct timeval
if it exists.
Wed May 15 00:23:07 2013 Nobuyoshi Nakada <[email protected]>
* configure.in (warnflags): disable -Werror by default unless
development. [ruby-core:52131] [Bug #7830]
Wed May 15 00:21:31 2013 NAKAMURA Usaku <[email protected]>
* signal.c: need to include unistd.h for write(2).
Tue May 14 20:25:58 2013 CHIKANAGA Tomoyuki <[email protected]>
* ext/dl/lib/dl/func.rb (DL::Function#call): check tainted when
$SAFE > 0.
* ext/fiddle/function.c (function_call): check tainted when $SAFE > 0.
* test/fiddle/test_func.rb (module Fiddle): add test for above.
Tue May 14 11:36:22 2013 Shugo Maeda <[email protected]>
* lib/net/imap.rb (getacl_response): parse the mailbox of an ACL
response correctly. [ruby-core:54365] [Bug #8281]
Tue May 14 11:24:22 2013 Martin Bosslet <[email protected]>
* ext/openssl/ossl_ssl.c: Correct shutdown behavior w.r.t GC.
* test/openssl/test_ssl.rb: Add tests to verify correct behavior.
[Bug #8240] Patch provided by Shugo Maeda. Thanks!
Tue May 14 11:22:33 2013 Naohisa Goto <[email protected]>
* configure.in (AC_CHECK_HEADERS): atomic.h for Solaris atomic_ops.
* ruby_atomic.h: Skip using Solaris10 atomic_ops on Solaris 9 or
earlier if atomic.h is not available. [ruby-dev:47229] [Bug #8228]
Tue May 14 10:42:23 2013 Nobuyoshi Nakada <[email protected]>
* lib/mkmf.rb (MAIN_DOES_NOTHING): ensure symbols for tests to be
preserved. [ruby-core:53745] [Bug #8169]
Tue May 14 10:42:23 2013 Nobuyoshi Nakada <[email protected]>
* lib/mkmf.rb (MAIN_DOES_NOTHING): force to refer symbols for tests
to be preserved. [ruby-core:53745] [Bug #8169]
Tue May 14 10:39:33 2013 NAKAMURA Usaku <[email protected]>
* regexec.c (onig_search): fix problem with optimization of \z.
[Backport #8210]
patched by k_takata at [ruby-core:54251].
Tue May 14 09:36:14 2013 Nobuyoshi Nakada <[email protected]>
* time.c (GetTimeval): check if already initialized instance.
* time.c (GetNewTimeval): check if newly created instance.
* time.c (time_init_0, time_init_1, time_init_copy, time_mload): must
be newly created instance. [ruby-core:53436] [Bug #8099]
Thu Apr 11 11:24:42 2013 Akinori MUSHA <[email protected]>
* lib/ipaddr.rb (IPAddr#in6_addr): Fix a typo with the closing
parenthesis.
Thu Apr 11 11:24:42 2013 Akinori MUSHA <[email protected]>
* lib/ipaddr.rb (IPAddr#in6_addr): Fix the parser so that it can
recognize IPv6 addresses with only one edge 16-bit piece
compressed, like [::2:3:4:5:6:7:8] or [1:2:3:4:5:6:7::].
[Bug #7477]
Thu Apr 11 11:22:32 2013 Naohisa Goto <[email protected]>
* string.c (rb_str_concat): set array element after definition
to fix compile error with Fujitsu C Compiler 5.6 on Solaris 10
on Sparc. [Bug #5878] [ruby-dev:45123]
Thu Apr 11 11:21:25 2013 Nobuyoshi Nakada <[email protected]>
* parse.y (parser_magic_comment): should pass the proper value.
[ruby-dev:44984][Bug #5753]
Thu Apr 11 11:18:57 2013 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c: [ruby-core:52303]
Thu Apr 4 16:21:39 2013 NAKAMURA Usaku <[email protected]>
* ext/objspace/objspace.c (count_nodes): fix key for unknown node.
based on a patch by tmm1 (Aman Gupta) in [ruby-core:53130] [Bug #8014]
Thu Apr 4 16:17:14 2013 Nobuyoshi Nakada <[email protected]>
* Makefile.in (miniruby, ruby): move MAINLIBC because linker arguments
must appear after object files with newer versions of gcc. patch by
tmm1 (Aman Gupta) in [ruby-core:53121] [Bug #8009]
Thu Apr 4 09:44:10 2013 Nobuyoshi Nakada <[email protected]>
* configure.in (DLDFLAGS): use TARGET_ENTRY to specify an entry point
instead of TARGET which may contain non-identifer characters.
* lib/mkmf.rb (create_makefile): add TARGET_NAME which is the first
part consists of only word characters. [ruby-core:46248][Bug #6709]
Tue Apr 2 13:13:19 2013 Martin Duerst <[email protected]>
* transcode.c (documentation for str_encode): Explain
that transcoding to the same encoding is a no-op
(i.e. no exceptions, no replacements,...).
[ruby-core:43557][Bug #6190]
Tue Apr 2 13:13:19 2013 Nobuyoshi Nakada <[email protected]>
* transcode.c (str_encode_bang, encoded_dup): if nothing was
transcoded, just set encoding but leave coderange unchanged as
forcee_encoding. [ruby-core:43557][Bug #6190]
Tue Apr 2 13:07:29 2013 Tanaka Akira <[email protected]>
* time.c (num_exact): use to_r method only if to_int method is
available.
[ruby-core:53764] [Bug #8173] reported by Hiro Asari.
Tue Apr 2 13:01:55 2013 Nobuyoshi Nakada <[email protected]>
* configure.in (EXTDLDFLAGS): split options for each extension
libraries, and unused in ruby.pc. [Bug #6734]
* lib/mkmf.rb (MakeMakefile#configuration): add EXTDLDFLAGS.
Tue Apr 2 12:59:35 2013 NAKAMURA Usaku <[email protected]>
* win32/win32.c (rb_w32_read): Windows 8 fixed one of a bug of console
API.
based on the patch by Heesob Park at [ruby-core:49479] [Bug #7379]
Tue Apr 2 12:56:15 2013 Naohisa Goto <[email protected]>
* signal.c (ruby_abort): fix typo in r39354 [Bug #5014]
Tue Apr 2 12:56:15 2013 Nobuyoshi Nakada <[email protected]>
* signal.c (check_stack_overflow): extract duplicated code and get rid
of declaration-after-statement. [Bug #5014]
Tue Apr 2 12:56:15 2013 KOSAKI Motohiro <[email protected]>
* signal.c (sigsegv): avoid to use async signal unsafe functions
when nested sigsegv is happen.
[Bug #5014] [ruby-dev:44082]
Fri Mar 29 13:22:15 2013 NAKAMURA Usaku <[email protected]>
* include/ruby/missing.h: fixed merge mistake of r39985.
[Backport #8080]
Thu Mar 28 19:01:54 2013 KOSAKI Motohiro <[email protected]>
* include/ruby/missing.h: removed __linux__. it's unnecessary.
Thu Mar 28 19:01:54 2013 KOSAKI Motohiro <[email protected]>
* thread.c: disabled _FORTIFY_SOURCE for avoid to hit glibc bug.
[Bug #8080] [ruby-core:53349]