OSDN Git Service
(root)
/
applistation
/
AppliStation.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b87c87
)
na-get-lib, 「#33681 FFFTP 1.98g2 を更新するとエラーが出る」問題の修正。文字配列参照時の境界確認を追加。
author
ttp
<ttp@users.sourceforge.jp>
Sun, 13 Jul 2014 11:59:31 +0000
(20:59 +0900)
committer
ttp
<ttp@users.sourceforge.jp>
Sun, 13 Jul 2014 11:59:31 +0000
(20:59 +0900)
na-get-lib/NaGet.Packages/VersionComparetor.cs
patch
|
blob
|
history
diff --git
a/na-get-lib/NaGet.Packages/VersionComparetor.cs
b/na-get-lib/NaGet.Packages/VersionComparetor.cs
index
6d94fda
..
f500d3b
100644
(file)
--- a/
na-get-lib/NaGet.Packages/VersionComparetor.cs
+++ b/
na-get-lib/NaGet.Packages/VersionComparetor.cs
@@
-71,8
+71,8
@@
namespace NaGet.Packages
apos ++; bpos ++;
\r
}
\r
\r
- if (a[apos] == '0') apos ++;
\r
- if (b[bpos] == '0') bpos ++;
\r
+ if (a
pos < alen && a
[apos] == '0') apos ++;
\r
+ if (b
pos < blen && b
[bpos] == '0') bpos ++;
\r
\r
while ((apos < alen) && (bpos < blen) &&
\r
char.IsDigit(a[apos]) && char.IsDigit(b[bpos])) {
\r