Closed Marsman1996 closed 2 years ago
These two issues are actually the same one. They are both because in the memcpy function of https://github.com/rockcarry/ffjpeg/blob/0fa4cf8a86d7f23a3e8336343c1895aa634fdc76/src/jfif.c#L708-L711 ffjpeg copies memory buffer longer than the source memory buffer (i.e. the length of STD_HUFTAB_LUMIN_AC is 178, and the length of STD_HUFTAB_LUMIN_DC is 28, but ffjpeg copies 272 from them).
memcpy
update code with sizeof()
sizeof()
These two issues are actually the same one. They are both because in the
memcpy
function of https://github.com/rockcarry/ffjpeg/blob/0fa4cf8a86d7f23a3e8336343c1895aa634fdc76/src/jfif.c#L708-L711 ffjpeg copies memory buffer longer than the source memory buffer (i.e. the length of STD_HUFTAB_LUMIN_AC is 178, and the length of STD_HUFTAB_LUMIN_DC is 28, but ffjpeg copies 272 from them).