Skip to content

Conversation

@richlowe
Copy link
Owner

else a 64bit sqlite will sign-extend values with the 31bit set, which breaks idmap and presumably SMF in the cases where a property exists in this state, and does who knows what to smb.

@jclulow @citrus-it this is the idmap bug I've been chasing all week, idmap forms queries using sqlite_mprintf and using the %u format to format uids and gids. This turns out -- because of the bug here -- to sign-extend them if they have the 31bit set, which ephemeral IDs always do. This then causes them to fail in the future and for ephemeral IDs for a given SID to be constantly recreated.

Anyway, the more important thing is that this seems to me like it means 64bit sqlite2 is just not a thing we can rely on, so both arm64-gate and illumos-gate actually need a sqlite3. arm64-gate in general, illumos-gate for any hope of 2038. What's the best way to communicate that? File a bug? get the 2038 IPD updated?

Also, should I fix this as here in the short term while I look at integrating sqlite3 per Bill's changes.

…ecified

else a 64bit sqlite will sign-extend values with the 31bit set, which breaks
idmap and presumably SMF in the cases where a property exists in this state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants