• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

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

Superconducting Toolkit


Commit MetaInfo

修订版585716d6435014dfc493abcd08294cd9f02eee30 (tree)
时间2017-08-24 18:09:14
作者paulatto <paulatto@c92e...>
Commiterpaulatto

Log Message

Most likely harmless out of bounds when writing UPF file with < or > in some character field

git-svn-id: svn+ssh://qeforge.qe-forge.org/svnroot/q-e/trunk/espresso@13763 c92efa57-630b-4861-b058-cf58834340f0

更改概述

差异

--- a/Modules/write_upf_v2.f90
+++ b/Modules/write_upf_v2.f90
@@ -659,6 +659,7 @@ CONTAINS
659659 disp = 0
660660 DO i = 1,len(in)
661661 o = i + disp
662+ IF(o>len(in)) EXIT
662663 IF ( in(i:i) == '<' .or. in(i:i) == '>' ) THEN
663664 out(o:o) = '/'
664665 ELSE IF (in(i:i) == '&') THEN