From 1c93cf501ad46f6729dda9f276ecccd949fe282f Mon Sep 17 00:00:00 2001 From: Quentin Kaiser <569494+qkaiser@users.noreply.github.com> Date: Fri, 17 Oct 2025 10:54:44 +0200 Subject: [PATCH] fix(handlers): fix incomplete ordering in YAFFSEntry (reported by CodeQL) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- python/unblob/handlers/filesystem/yaffs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/unblob/handlers/filesystem/yaffs.py b/python/unblob/handlers/filesystem/yaffs.py index 06b28d8395..74ae085c1f 100644 --- a/python/unblob/handlers/filesystem/yaffs.py +++ b/python/unblob/handlers/filesystem/yaffs.py @@ -7,6 +7,7 @@ from typing import Optional import attrs +import functools from structlog import get_logger from treelib.exceptions import NodeIDAbsentError from treelib.tree import Tree @@ -187,6 +188,7 @@ class YAFFSConfig: ecc: bool +@functools.total_ordering @attrs.define class YAFFSEntry: object_type: YaffsObjectType