Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
5effaa90
Kaydet (Commit)
5effaa90
authored
Kas 06, 2013
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
idl: fix out of bounds string accesses
Change-Id: Id0d07ff9bcd4858cb74458eaf13fb9386387f455
üst
614e0401
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
lex.hxx
idl/inc/lex.hxx
+3
-1
lex.cxx
idl/source/cmptools/lex.cxx
+2
-2
No files found.
idl/inc/lex.hxx
Dosyayı görüntüle @
5effaa90
...
@@ -140,7 +140,9 @@ class SvTokenStream
...
@@ -140,7 +140,9 @@ class SvTokenStream
int
GetNextChar
();
int
GetNextChar
();
int
GetFastNextChar
()
int
GetFastNextChar
()
{
{
return
aBufStr
[
nBufPos
++
];
return
(
nBufPos
<
aBufStr
.
getLength
())
?
aBufStr
[
nBufPos
++
]
:
'\0'
;
}
}
void
FillTokenList
();
void
FillTokenList
();
...
...
idl/source/cmptools/lex.cxx
Dosyayı görüntüle @
5effaa90
...
@@ -151,9 +151,9 @@ void SvTokenStream::FillTokenList()
...
@@ -151,9 +151,9 @@ void SvTokenStream::FillTokenList()
int
SvTokenStream
::
GetNextChar
()
int
SvTokenStream
::
GetNextChar
()
{
{
int
nChar
;
int
nChar
;
if
(
aBufStr
.
getLength
()
<
nBufPos
)
while
(
aBufStr
.
getLength
()
<=
nBufPos
)
{
{
if
(
rInStream
.
ReadLine
(
aBufStr
)
)
if
(
rInStream
.
ReadLine
(
aBufStr
)
)
{
{
nLine
++
;
nLine
++
;
nColumn
=
0
;
nColumn
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment