Switch to big-endian storage for all variant data

This ensures the saved archives are architecture-independent.
This commit is contained in:
Colin Walters committed 2011-10-31 22:41:50 -04:00
1 parent a160a2a5fa
commit 8769f4afd8
3 files changed
+15 -7

No files matched your search

+1
View File
@@ -356,6 +356,7 @@ ostree_parse_metadata_file (const char *path,
mfile);
g_variant_get (container, "(uv)",
&ret_type, &ret_variant);
ret_type = GUINT32_FROM_BE (ret_type);
if (ret_type <= 0 || ret_type > OSTREE_SERIALIZED_VARIANT_LAST)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,