• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révisiond08df6021d15dbf677bb0b59a635fbf34b5c4d8a (tree)
l'heure2005-02-20 21:50:06
Auteurhenoheno <henoheno>
Commiterhenoheno

Message de Log

BugTrack2/9: Off-by-one error allows #freeze locking

Change Summary

Modification

--- a/lib/func.php
+++ b/lib/func.php
@@ -1,6 +1,6 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone.
3-// $Id: func.php,v 1.30 2005/01/27 12:50:43 henoheno Exp $
3+// $Id: func.php,v 1.31 2005/02/20 12:50:06 henoheno Exp $
44 //
55 // General functions
66
@@ -78,7 +78,7 @@ function is_freeze($page, $clearcache = FALSE)
7878 $fp = fopen(get_filename($page), 'rb');
7979 flock($fp, LOCK_SH);
8080 rewind($fp);
81- $buffer = fgets($fp, 8);
81+ $buffer = fgets($fp, 9);
8282 flock($fp, LOCK_UN);
8383 fclose($fp);
8484