Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | In the SQLiteIndex.FreeNative method, zero out pointers to the freed memory blocks. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
72929d612b01129e9525df2a837bd2a5 |
User & Date: | mistachkin 2017-01-27 20:33:56.567 |
Context
2017-02-02
| ||
18:10 | Update the estimated date for the 1.0.105.0 release. check-in: 854ff0dbc0 user: mistachkin tags: trunk | |
2017-01-27
| ||
20:33 | In the SQLiteIndex.FreeNative method, zero out pointers to the freed memory blocks. check-in: 72929d612b user: mistachkin tags: trunk | |
2017-01-26
| ||
21:56 | Update Eagle in externals to the beta 39 release. check-in: 6bac273f81 user: mistachkin tags: trunk | |
Changes
Changes to System.Data.SQLite/SQLiteModule.cs.
︙ | ︙ | |||
1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 | int offset = 0; offset = SQLiteMarshal.NextOffsetOf( offset, sizeof(int), IntPtr.Size); IntPtr pConstraint = SQLiteMarshal.ReadIntPtr( pIndex, offset); offset = SQLiteMarshal.NextOffsetOf( offset, IntPtr.Size, sizeof(int)); offset = SQLiteMarshal.NextOffsetOf( offset, sizeof(int), IntPtr.Size); IntPtr pOrderBy = SQLiteMarshal.ReadIntPtr( pIndex, offset); offset = SQLiteMarshal.NextOffsetOf( offset, IntPtr.Size, IntPtr.Size); IntPtr pConstraintUsage = SQLiteMarshal.ReadIntPtr( pIndex, offset); if (pConstraintUsage != IntPtr.Zero) { SQLiteMemory.Free(pConstraintUsage); pConstraintUsage = IntPtr.Zero; } if (pOrderBy != IntPtr.Zero) { SQLiteMemory.Free(pOrderBy); pOrderBy = IntPtr.Zero; } if (pConstraint != IntPtr.Zero) { SQLiteMemory.Free(pConstraint); pConstraint = IntPtr.Zero; } if (pIndex != IntPtr.Zero) { SQLiteMemory.Free(pIndex); pIndex = IntPtr.Zero; } | > > > > > > > > > > > > > > > | 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 | int offset = 0; offset = SQLiteMarshal.NextOffsetOf( offset, sizeof(int), IntPtr.Size); IntPtr pConstraint = SQLiteMarshal.ReadIntPtr( pIndex, offset); int constraintOffset = offset; offset = SQLiteMarshal.NextOffsetOf( offset, IntPtr.Size, sizeof(int)); offset = SQLiteMarshal.NextOffsetOf( offset, sizeof(int), IntPtr.Size); IntPtr pOrderBy = SQLiteMarshal.ReadIntPtr( pIndex, offset); int orderByOffset = offset; offset = SQLiteMarshal.NextOffsetOf( offset, IntPtr.Size, IntPtr.Size); IntPtr pConstraintUsage = SQLiteMarshal.ReadIntPtr( pIndex, offset); int constraintUsageOffset = offset; if (pConstraintUsage != IntPtr.Zero) { SQLiteMemory.Free(pConstraintUsage); pConstraintUsage = IntPtr.Zero; SQLiteMarshal.WriteIntPtr( pIndex, constraintUsageOffset, pConstraintUsage); } if (pOrderBy != IntPtr.Zero) { SQLiteMemory.Free(pOrderBy); pOrderBy = IntPtr.Zero; SQLiteMarshal.WriteIntPtr( pIndex, orderByOffset, pOrderBy); } if (pConstraint != IntPtr.Zero) { SQLiteMemory.Free(pConstraint); pConstraint = IntPtr.Zero; SQLiteMarshal.WriteIntPtr( pIndex, constraintOffset, pConstraint); } if (pIndex != IntPtr.Zero) { SQLiteMemory.Free(pIndex); pIndex = IntPtr.Zero; } |
︙ | ︙ |