OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1d6b20
)
Fix possible access beyond end of memory mapped file
author
Jochen Tucht
<jtuc@users.sourceforge.net>
Wed, 19 May 2010 12:25:14 +0000
(12:25 +0000)
committer
Jochen Tucht
<jtuc@users.sourceforge.net>
Wed, 19 May 2010 12:25:14 +0000
(12:25 +0000)
Src/codepage_detect.cpp
patch
|
blob
|
history
diff --git
a/Src/codepage_detect.cpp
b/Src/codepage_detect.cpp
index
19c5de2
..
4d3757c
100644
(file)
--- a/
Src/codepage_detect.cpp
+++ b/
Src/codepage_detect.cpp
@@
-223,7
+223,7
@@
void GuessCodepageEncoding(LPCTSTR filepath, FileTextEncoding * encoding, BOOL b
encoding->m_bom = true;
break;
default:
- if (fi.pImage && !CheckForInvalidUtf8((LPBYTE)fi.pImage,
4096
))
+ if (fi.pImage && !CheckForInvalidUtf8((LPBYTE)fi.pImage,
fi.cbImage
))
encoding->SetUnicoding(ucr::UTF8);
encoding->m_bom = false;
break;