File: CVE-2023-1183.diff

package info (click to toggle)
hsqldb 2.7.1-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 24,496 kB
  • sloc: java: 188,125; sql: 2,882; xml: 2,110; sh: 494; ansic: 470; javascript: 419; python: 139; perl: 94; php: 72; makefile: 41
file content (48 lines) | stat: -rw-r--r-- 2,048 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Index: src/org/hsqldb/StatementCommand.java
===================================================================
--- a/hsqldb/src/org/hsqldb/StatementCommand.java	(Revision 6638)
+++ b/hsqldb/src/org/hsqldb/StatementCommand.java	(Revision 6639)
@@ -1008,6 +1008,10 @@
                         throw Error.error(ErrorCode.X_42507);
                     }
 
+                    if (session.isProcessingScript() || session.isProcessingLog()) {
+                        return Result.updateZeroResult;
+                    }
+
                     if (name == null) {
                         return session.database.getScript(false);
                     } else {
@@ -1077,6 +1081,10 @@
                         throw Error.error(ErrorCode.X_42507);
                     }
 
+                    if (session.isProcessingScript() || session.isProcessingLog()) {
+                        return Result.updateZeroResult;
+                    }
+
                     return ScriptLoader.loadScriptData(
                         session, pathName, mode, isVersioning.booleanValue());
                 } catch (HsqlException e) {
@@ -1102,6 +1110,10 @@
                         throw Error.error(ErrorCode.X_42507);
                     }
 
+                    if (session.isProcessingScript() || session.isProcessingLog()) {
+                        return Result.updateZeroResult;
+                    }
+
                     return TextFileOps.loadTextData(session, textprops, table,
                                                     mode);
                 } catch (HsqlException e) {
@@ -1126,6 +1138,10 @@
                         throw Error.error(ErrorCode.X_42507);
                     }
 
+                    if (session.isProcessingScript() || session.isProcessingLog()) {
+                        return Result.updateZeroResult;
+                    }
+
                     return TextFileOps.unloadTextData(session, textprops,
                                                       table);
                 } catch (HsqlException e) {