Commit Graph

71 Commits (0e45ab396153ab2c3620acf7558b8583ff2bb91b)

Author SHA1 Message Date
Xavier Leroy b2166e33f5 - Hashtbl:
. Added optional "random" parameter to Hashtbl.create to randomize
      collision patterns and improve security (PR#5572, CVE-2012-0839)
    . Added "randomize" function and "R" parameter to OCAMLRUNPARAM
      to turn randomization on by default (PR#5572, CVE-2012-0839)
- Filename: on-demand (lazy) initialization of the PRNG used by "temp_file".



git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12384 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-19 13:17:40 +00:00
Xavier Leroy 44b6164bb0 Improve self-initialization of the Random module, using /dev/urandom
when available.  The changes in byterun/win32.c are untested.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12244 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-14 16:12:09 +00:00
Xavier Leroy aea227fdeb Better hashing!
- New generic hash function based on Murmur 3, with better statistical
  properties (PR#5225), and better speed
- Make sure equal floats hash equally (PR#5222)
- Breadth-first traversal instead of depth-first
- Added seeded hash functions and seeded functorial interface to Hashtbl.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11056 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-05-29 09:52:27 +00:00
Damien Doligez bfdf476b69 merge last changes from 3.11 branch (rev 10307)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10309 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-04-26 12:54:11 +00:00
Damien Doligez 7539834933 big bug in Obj.add_offset
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9561 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-01-25 11:55:30 +00:00
Damien Doligez bdc0fadee2 merge changes from release/3.11.1 to release/3.11.2
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9540 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-01-20 16:26:46 +00:00
Damien Doligez 1f95b17570 merge changes from 3.10.2merged to 3.11.0
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9153 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-12-03 18:09:09 +00:00
Michel Mauny 666cb14adf Implement Lazy.force as a primitive, and optimize its calls.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8974 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-08-01 16:57:10 +00:00
Michel Mauny d0d6af3c16 Remove restrictions to stream concatenation, and use Lazy.t for the argument
of the Slazy data constructor.
Affected files: stdlib/{stream.ml,.depend,Makefile}


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8893 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-06-18 15:35:02 +00:00
Damien Doligez 773ff5b883 probleme avec les .depend
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8415 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-10-08 12:30:31 +00:00
Damien Doligez f700284aac fusion des changements 3.09.3 -> release309_merge310
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7849 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-09 13:31:15 +00:00
Damien Doligez fbea66a95e fusion des changements 3.09.2 -> 3.09.3
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7619 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-09-20 11:14:37 +00:00
Damien Doligez 7519fe8f6b fusion des bugfixes de 3.08.2
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6694 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-11-25 00:06:06 +00:00
Xavier Leroy 30d9dc3229 Ajout module CamlinternalMod (auxiliaires pour la compilation de 'module rec')
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6586 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-08-12 12:57:00 +00:00
Xavier Leroy 63c1789b5e Fusion des modifs faites sur la branche release jusqu'a la release 3.08.0
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-07-13 12:25:21 +00:00
Damien Doligez 8fde08275d deuxieme tranche des travaux de depollution (PR#1914 et PR#1956) + dependances
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6020 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-12-15 16:29:53 +00:00
Damien Doligez 917c0ab755 depend
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5728 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-07-23 22:26:38 +00:00
Xavier Leroy 60a563d8fb MAJ dependances
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5713 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-07-17 15:41:14 +00:00
Damien Doligez d55a2af738 deps
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5576 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-05-23 14:28:39 +00:00
Damien Doligez 0738514628 PR#1249
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5197 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-10-29 13:55:33 +00:00
Damien Doligez 8bd27a45b4 deps
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5018 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-07-22 15:48:45 +00:00
Xavier Leroy 38b49667b1 MAJ dependances
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5016 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-07-22 13:38:00 +00:00
Damien Doligez 3932ce2651 alldepend
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4961 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-06-27 12:13:48 +00:00
Damien Doligez 2dd5bb2e5d .depend + .cvsignore
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4855 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-28 17:03:40 +00:00
Pierre Weis 1b790320c7 Disparition de Scanning.ml et Scanning.mli.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4850 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-27 22:01:05 +00:00
Damien Doligez 77173a5fe7 deps
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4822 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-16 15:23:05 +00:00
Pierre Weis 01ca2d9ec2 Introducing a ``scanf'' facility in Objective Caml.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4780 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-07 07:41:12 +00:00
Xavier Leroy a4ade26294 Decoupage de stdlib/oo en stdlib/camlinternalOO et stdlib/oo. Petites modifs dans la compilation des classes pour reduire la taille du code genere
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4736 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-04-24 09:49:06 +00:00
Damien Doligez 4e87d1239d deps + factorisation sprintf/kprintf
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4529 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-13 17:34:58 +00:00
Xavier Leroy bddfe5d0ce Ajout operations sur gros fichiers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4474 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-02 09:16:39 +00:00
Xavier Leroy a91206aa2f Ajout module Complex
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4371 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-02-10 17:00:13 +00:00
Jacques Garrigue e66c96ac34 MoreLabels for better 3.02 compatibility
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3846 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-10-03 12:21:22 +00:00
Jacques Garrigue ea299bbbc1 passage aux labels stricts
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3696 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-09-06 08:52:32 +00:00
Damien Doligez b80c77b025 fix -noassert pour que le typage des assertions soit toujours fait
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3353 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-12-04 15:37:05 +00:00
Xavier Leroy 4430e136bf MAJ
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3107 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-04-18 14:55:06 +00:00
Damien Doligez 651700f89d nouveaux tris
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3087 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-04-14 10:05:33 +00:00
Xavier Leroy f0772cbd33 MAJ
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2867 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-02-25 13:46:31 +00:00
Xavier Leroy 1cac403368 Ajout des modules Int32, Int64 et Nativeint
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2807 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-02-11 15:09:27 +00:00
Damien Doligez 71e622a29a dependances
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2749 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-01-07 18:08:43 +00:00
Jacques Garrigue 296fc05470 Merge olabl branch
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2651 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-30 16:07:38 +00:00
Damien Doligez 27a8e18476 MAJ
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2643 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-29 19:48:17 +00:00
Damien Doligez 0df72f3e86 blah
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2446 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-10-21 10:03:12 +00:00
Damien Doligez bbcdbb90b6 dependances
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2340 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-03-04 23:00:31 +00:00
Xavier Leroy a5eb7789fd Revu le module Buffer.
Utilise Buffer dans Printf.sprintf; ajout Printf.bprintf.
Ajout Map.mem.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2309 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-02-25 10:26:38 +00:00
Pierre Weis e3f42c3acd Addition of sprintf and formatting on buffers.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2285 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-02-16 09:07:26 +00:00
Xavier Leroy 55bb148630 Retour au code d'origine pour List.iter. Je veux un seul test par
iteration, dammit.
Suppression de dependances spurieuses dans Array et String.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1756 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-11-06 17:28:16 +00:00
Damien Doligez b8ccccff49 Makefiles: fix disparition de weak.cmo
Changement de type des fonctions iter


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1747 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-10-31 12:59:29 +00:00
Damien Doligez c194d39545 Paresseux.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1716 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-10-14 13:17:48 +00:00
Damien Doligez c44e6f999a arg.ml, arg.mli, string.mli: amelioration de la doc
array.mli, array.ml, random.ml: create -> make (coherence avec String)
sys.ml, sys.mli: ajout max_string_length, max_array_length


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1706 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-09-11 15:10:23 +00:00
Xavier Leroy b149e67a88 Nouveau module Marshal dans stdlib
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1633 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-07-02 18:16:15 +00:00