[MDEV-29643] a potential bug of NPD Created: 2022-09-27  Updated: 2022-09-27  Resolved: 2022-09-27

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - Mroonga
Affects Version/s: 10.9.3
Fix Version/s: N/A

Type: Bug Priority: Critical
Reporter: ash1852 Assignee: Kouhei Sutou
Resolution: Won't Fix Votes: 0
Labels: None
Environment:

ubuntu20.04


Attachments: PNG File image-2022-09-27-10-33-44-655.png    

 Description   

Hi, I found a potential null pointer dereference bug in the project source code of mariadb, and I have shown the execution sequence of the program that may generate the bug on the graph below. The red text illustrates the steps that generate the bug, the red arrows represent the control flow,the file path can be seen in the blue framed section.

Although the code shown is for version 10.3 but is still exist in current version

would you can help to check if this bug is true?thank you for your effort and patience!



 Comments   
Comment by Kouhei Sutou [ 2022-09-27 ]

Thanks for your report.

Yes. This may be happen when enough memory isn't remained. In the situation (no memory situation), we'll have other problems too. We can add a NULL check here but it will not help the situation...

And this code isn't used in normal use cases. This code is for Groonga's plugin system. But, in general, Mroonga doesn't use the Groonga's plugin system. So we won't fix this. Sorry.

Comment by ash1852 [ 2022-09-27 ]

ok, thank you for your reply.

Generated at Thu Feb 08 10:10:11 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.