oracle-py-cx: fix build (#8895)

This is an effort to fix:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=51298

Signed-off-by: David Korczynski <david@adalogics.com>

Signed-off-by: David Korczynski <david@adalogics.com>
This commit is contained in:
DavidKorczynski 2022-10-31 08:26:08 -04:00 committed by GitHub
parent ea3286687f
commit d2dc215658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -16,8 +16,8 @@
FROM gcr.io/oss-fuzz-base/base-builder-python
RUN mkdir -p /opt/oracle
WORKDIR /opt/oracle
RUN wget https://download.oracle.com/otn_software/linux/instantclient/216000/instantclient-basic-linux.x64-21.6.0.0.0dbru.zip && \
RUN cd /opt/oracle && \
wget https://download.oracle.com/otn_software/linux/instantclient/216000/instantclient-basic-linux.x64-21.6.0.0.0dbru.zip && \
unzip instantclient-basic-linux.x64-21.6.0.0.0dbru.zip && \
rm instantclient-basic-linux.x64-21.6.0.0.0dbru.zip && \
echo /opt/oracle/instantclient_21_6 > /etc/ld.so.conf.d/oracle-instantclient.conf && \
@ -27,9 +27,9 @@ ENV LD_LIBRARY_PATH=/opt/oracle/instantclient_21_6
RUN apt-get install libaio1 libaio-dev
RUN pip3 install --upgrade pip && pip install requests
RUN git clone https://github.com/oracle/python-cx_Oracle oracle-py-cx
WORKDIR oracle-py-cx
RUN git submodule init && \
git submodule update
RUN git clone https://github.com/oracle/python-cx_Oracle oracle-py-cx && \
cd oracle-py-cx && \
git submodule init && \
git submodule update
COPY build.sh fuzz_*.py $SRC/

View File

@ -14,7 +14,7 @@
# limitations under the License.
#
################################################################################
cd $SRC/oracle-py-cx
pip3 install .
for fuzzer in $(find $SRC -name 'fuzz_*.py'); do
compile_python_fuzzer $fuzzer --add-binary /opt/oracle/instantclient_21_6:./ --add-binary /usr/lib/x86_64-linux-gnu/:./