Version française
Home     About     Download     Resources     Contact us    
Browse thread
Filename checks, nul byte in string, etc...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Frédéric_Motte <fmotte@u...>
Subject: Filename checks, nul byte in string, etc...
Hello ocamlers,

Flux on the IRC channel #OCaml on freenode pointed out this documents: 
http://insecure.org/news/P55-07.txt (and 
http://programming.reddit.com/info/2tt0k/comments)

It would be interresting to check some modules.

For example:

# open Filename;;
# check_suffix "test.a\000.b" "b";;
- : bool = true
# check_suffix "test.a" "b";;
- : bool = false

On the unix shell:
$ touch test.a

Back to ocaml:
# open_in "test.a\000.b";;
- : in_channel = <abstr>


--
Frédéric Motte