Skip to content

Issue #273: Added bounds checking in order to correctly model packet_in.extract() semantics for header stacks.#307

Open
Hardikoder wants to merge 1 commit intop4lang:mainfrom
Hardikoder:issue#273
Open

Issue #273: Added bounds checking in order to correctly model packet_in.extract() semantics for header stacks.#307
Hardikoder wants to merge 1 commit intop4lang:mainfrom
Hardikoder:issue#273

Conversation

@Hardikoder
Copy link
Copy Markdown

@Hardikoder Hardikoder commented Jan 27, 2026

Issue #273 : Added a bounds checking verify operation and increment operation for fixed size header stacks. It prevents out-of bounds memory access by verifying if the current index is within the valid bounds before accessing the next header stack element.

Signed-off-by: HardikBhardikbhagia@gmail.com

@Hardikoder Hardikoder marked this pull request as draft January 27, 2026 07:06
…ment operation for fixed size header stacks. It prevents out-of bounds memory access by verifying if the current index is within the valid bounds before accessing the next header stack element. Signed-of-by: Hardik Bhagia <hardikbhagia@gmail.com>

Signed-off-by: Hardik <hardikbhagia@gmail.com>
@Hardikoder Hardikoder marked this pull request as ready for review January 27, 2026 10:44
#include "mlir/Interfaces/FunctionInterfaces.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Transforms/DialectConversion.h"
#include "mlir/Dialect/Arith/IR/Arith.h"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not using arith dialect here. You're also lacking any tests

@vaalfreja
Copy link
Copy Markdown
Collaborator

@Hardikoder Are you going to continue working on this fix?

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.

3 participants