Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtuoso 7.2.9 crashed at sqlc_make_policy_trig #1135

Closed
fuboat opened this issue Apr 12, 2023 · 0 comments
Closed

virtuoso 7.2.9 crashed at sqlc_make_policy_trig #1135

fuboat opened this issue Apr 12, 2023 · 0 comments

Comments

@fuboat
Copy link

fuboat commented Apr 12, 2023

The PoC is generated by my DBMS fuzzer.

DELETE FROM ucview WHERE CURRENT OF c1;

backtrace:

#0 0x7d8904 (sqlc_make_policy_trig+0x54)
#1 0x7ddf99 (sqlc_delete_pos+0x2e9)
#2 0x6b6e53 (sql_stmt_comp+0x453)
#3 0x6ba122 (sql_compile_1+0x1a62)
#4 0x7c8cd0 (stmt_set_query+0x340)
#5 0x7cabc2 (sf_sql_execute+0x922)
#6 0x7cbf4e (sf_sql_execute_w+0x17e)
#7 0x7d4c0d (sf_sql_execute_wrapper+0x3d)
#8 0xe1f01c (future_wrapper+0x3fc)
#9 0xe2691e (_thread_boot+0x11e)
#10 0x7faabf70f609 (start_thread+0xd9)
#11 0x7faabf4df133 (clone+0x43)

ways to reproduce (write poc to the file '/tmp/test.sql' first):

# remove the old one
docker container rm virtdb_test -f
# start virtuoso through docker
docker run --name virtdb_test -itd --env DBA_PASSWORD=dba openlink/virtuoso-opensource-7:7.2.9
# wait the server starting
sleep 10
# check whether the simple query works
echo "SELECT 1;" | docker exec -i virtdb_test isql 1111 dba
# run the poc
docker exec -i virtdb_test isql 1111 dba < "/tmp/test.sql"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant