*** buffer overflow detected ***异常

593 阅读1分钟

一次在linux上编译程序报错:

*** buffer overflow detected ***: ./TAppEncoderStaticSADBS terminated

排查原因发现是sprintf读取时数组长度不够,将数组长度由50增加为128即可解决。