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
d93c204f
Kaydet (Commit)
d93c204f
authored
Ock 24, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1158180 Argument cannot be negative
Change-Id: Ic8dd6aeff02b08c8a3951ce0378eab95ba0c6f1d
üst
cbff9d45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
opencl_device_selection.h
sc/source/core/opencl/opencl_device_selection.h
+9
-1
No files found.
sc/source/core/opencl/opencl_device_selection.h
Dosyayı görüntüle @
d93c204f
...
...
@@ -347,6 +347,7 @@ inline ds_status readProFile(const char* fileName, char** content, size_t* conte
FILE
*
input
=
NULL
;
size_t
size
=
0
;
char
*
binary
=
NULL
;
long
pos
=
-
1
;
*
contentSize
=
0
;
*
content
=
NULL
;
...
...
@@ -358,7 +359,14 @@ inline ds_status readProFile(const char* fileName, char** content, size_t* conte
}
fseek
(
input
,
0L
,
SEEK_END
);
size
=
ftell
(
input
);
pos
=
ftell
(
input
);
if
(
pos
<
0
)
{
fclose
(
input
);
return
DS_FILE_ERROR
;
}
size
=
pos
;
rewind
(
input
);
binary
=
(
char
*
)
malloc
(
size
);
if
(
binary
==
NULL
)
...
...
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