diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-04-03 09:39:30 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-04-03 09:39:30 +0000 |
| commit | 7936bc4b6adebb2ca1f8fa64b23f446dd49130eb (patch) | |
| tree | 38a6a450761df11cae2104b47d74d3bc7c3a4f30 /CVE-2022-0908.patch | |
| parent | a04ebf0cdf85f3ab299a399d04c7ab8848ec5c7e (diff) | |
automatic import of opencvopeneuler24.03_LTS
Diffstat (limited to 'CVE-2022-0908.patch')
| -rw-r--r-- | CVE-2022-0908.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CVE-2022-0908.patch b/CVE-2022-0908.patch new file mode 100644 index 0000000..53f2974 --- /dev/null +++ b/CVE-2022-0908.patch @@ -0,0 +1,15 @@ +diff -Npur opencv-4.5.2/3rdparty/libtiff/tif_dirread.c opencv-4.5.2-new/3rdparty/libtiff/tif_dirread.c +--- opencv-4.5.2/3rdparty/libtiff/tif_dirread.c 2021-04-02 19:23:54.000000000 +0800 ++++ opencv-4.5.2-new/3rdparty/libtiff/tif_dirread.c 2022-05-21 14:36:31.761285562 +0800 +@@ -5079,7 +5079,10 @@ TIFFFetchNormalTag(TIFF* tif, TIFFDirEnt + _TIFFfree(data); + return(0); + } +- _TIFFmemcpy(o,data,(uint32)dp->tdir_count); ++ if (dp->tdir_count > 0 ) ++ { ++ _TIFFmemcpy(o,data,(uint32)dp->tdir_count); ++ } + o[(uint32)dp->tdir_count]=0; + if (data!=0) + _TIFFfree(data); |
