(data)
| 31 | db.exec("CREATE TABLE test3 (data); INSERT INTO test3 VALUES (x'6100ff'), (x'ffffff00ffff');"); |
| 32 | |
| 33 | function test_zero_byte_index(data) { |
| 34 | // Data is a Uint8Array |
| 35 | for (var i=0; i<data.length; i++) { |
| 36 | if (data[i] === 0) { |
| 37 | return i; |
| 38 | } |
| 39 | } |
| 40 | return -1; |
| 41 | }; |
| 42 | |
| 43 | db.create_function("TestZeroByteIndex", test_zero_byte_index); |
| 44 | result = db.exec("SELECT TestZeroByteIndex(data) FROM test3;"); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…