[PR #13505] [MERGED] Fix bad code in fuzzing_directed.h #29596

Open
opened 2026-01-31 09:35:49 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13505
Author: @lhecker
Created: 7/14/2022
Status: Merged
Merged: 7/14/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/13501-cpp-fix


📝 Commits (1)

  • 5000728 Fix bad code in fuzzing_directed.h

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/terminal/parser/ft_fuzzer/fuzzing_directed.h (+1 -1)

📄 Description

2b202ce6 changed this code to fix 2-phase name lookup, but accidentally
changed &m_tInit to &CFuzzType::m_tInit (pointer-to-member¹)
instead of &this->m_tInit (a regular pointer to some value).
This should not be confused with &(CFuzzType::m_tInit)
of course which is not a pointer-to-member.

¹ To simplify things, a pointer-to-member is basically the byte offset of a
member within a struct. For instance given struct T { char a, b, c, d; } then
&T::c would commonly "store" the value 2, equivalent to offsetof(T, c).

Closes #13501


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/13505 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 7/14/2022 **Status:** ✅ Merged **Merged:** 7/14/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/13501-cpp-fix` --- ### 📝 Commits (1) - [`5000728`](https://github.com/microsoft/terminal/commit/5000728886ae2772e6b1698a737fd06f7609469d) Fix bad code in fuzzing_directed.h ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/terminal/parser/ft_fuzzer/fuzzing_directed.h` (+1 -1) </details> ### 📄 Description 2b202ce6 changed this code to fix 2-phase name lookup, but accidentally changed `&m_tInit` to `&CFuzzType::m_tInit` (pointer-to-member¹) instead of `&this->m_tInit` (a regular pointer to some value). This should not be confused with `&(CFuzzType::m_tInit)` of course which is _not_ a pointer-to-member. ¹ To simplify things, a pointer-to-member is basically the byte offset of a member within a struct. For instance given `struct T { char a, b, c, d; }` then `&T::c` would commonly "store" the value 2, equivalent to `offsetof(T, c)`. Closes #13501 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:35:49 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29596