The linux-input mailing list has been moved

2012-07-08 Thread Martin Mares
The linux-input mailing list has been moved to vger.kernel.org.
See http://vger.kernel.org/vger-lists.html for information on the
new list server (or consult your local oracle).

Yours virtually,
Martin Mares
--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] Get commits from remote repositories by HTTP

2005-04-16 Thread Martin Mares
Hello!

 This adds a program to download a commit, the trees, and the blobs in them
 from a remote repository using HTTP. It skips anything you already have.

Is it really necessary to write your own HTTP downloader? If so, is it
necessary to forget basic stuff like the Host: header? ;-)

If you feel that it should be optimized for speed, then at least use
persistent connections.

 + if (memcmp(target, http://;, 7))
 + return -1;

Can crash if the string is too short.

 + entry = gethostbyname(name);
 + memcpy(sockad.sin_addr.s_addr,
 +((struct in_addr *)entry-h_addr)-s_addr, 4);

Can crash if the host doesn't exist or if you feed it with an URL containing
port number.

 +static int get_connection()

(void)

 + local = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0666);

What if it fails?

Have a nice fortnight
-- 
Martin `MJ' Mares   [EMAIL PROTECTED]   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
A student who changes the course of history is probably taking an exam.
-
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: SHA1 hash safety

2005-04-16 Thread Martin Mares
Hi!

 We've already computed the chances of a random pure hash collision
 with SHA1 - it's something like an average of 1 collision every
 10 billion years if we have 10,000 coders generating 1 new file
 version every minute, non-stop, 24 hours a day, 365 days a year.

GIT is safe even for the millions of monkeys writing Shakespeare :-)

Have a nice fortnight
-- 
Martin `MJ' Mares   [EMAIL PROTECTED]   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
Homo homini lupus, frater fratri lupior, bohemus bohemo lupissimus.
-
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html