oss-fuzz/projects/mysql-server/targets
준화 f8d2bb7548
[mysql-server] Update patch for fuzzers (#10260)
Hi, I updated the patch for mysql-server to be compatible with the
current version.
The patch was lastly updated 2 years ago, and it shows the following
errors.
```
+ cd mysql-server
+ git apply ../fix.diff
error: patch failed: sql/mysqld.cc:6991
error: sql/mysqld.cc: patch does not apply
ERROR:__main__:Building fuzzers failed.
```
<img width="510" alt="image"
src="https://user-images.githubusercontent.com/17183234/236576978-76223986-3621-413c-be5f-da94b44de74c.png">

So I updated the patch with the current version of MySQL server.

In my local, I tested with bellow commands, and it works correctly now.
`python3 infra/helper.py build_image mysql-server`
`python3 infra/helper.py build_fuzzers --sanitizer address mysql-server`
`python3 infra/helper.py check_build mysql-server`

<img width="612" alt="image"
src="https://user-images.githubusercontent.com/17183234/236576936-e0cc38d3-944a-42c2-9a76-659c025e5f48.png">
2023-05-09 08:29:24 -04:00
..
CMakeLists.txt
README
fuzz_docommand.cc
fuzz_docommand.dict
fuzz_docommand.options
fuzz_initfile.cc
fuzz_initfile.dict
fuzz_initfile.options
fuzz_mysqld.cc
fuzz_mysqld.dict
fuzz_mysqld.options
fuzz_real_query.cc
fuzz_stmt_fetch.cc
init.sql
initnopw.sql
onefile.cc
util_fuzz.cc
util_fuzz.h

README

This is the directory used for fuzzing, intended to be used with oss-fuzz.