Commit e6ebc65
vamsi
Fix syntax crash from null filter
When a filter or validate function throws null,
the global event loop in loop.js unsafely tries
to access its properties, crashing couchjs.
This adds safe null checks to the global handler
to prevent complete denial of service.1 parent 3083d28 commit e6ebc65
2 files changed
Lines changed: 5 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments