Possible NULL dereference in gpre/sql.cpp

12 views
Skip to first unread message

Mark Rotteveel

unread,
Jul 10, 2025, 3:54:57 AMJul 10
to firebir...@googlegroups.com
Visual Studio analysis shows a possible NULL dereference in
act* SQL_action(const TEXT* base_directory)

I think it can be fixed by changing the default of the first switch from

```
default:
CPR_s_error("SQL operation");
```

to

```
default:
CPR_s_error("SQL operation");
return NULL;
```

Do you agree?

Mark
--
Mark Rotteveel

Mark Rotteveel

unread,
Jul 10, 2025, 4:17:04 AMJul 10
to firebir...@googlegroups.com
Alternatively, that call to CPR_s_error, should maybe be a call to
PAR_error.

Mark
--
Mark Rotteveel
Reply all
Reply to author
Forward
0 new messages