Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for mid lbuf reuse issue #1

Closed
wants to merge 1 commit into from
Closed

Conversation

pdbogen
Copy link

@pdbogen pdbogen commented Oct 26, 2014

Something odd with mid, I'm not sure what the root cause is. This patch does not address the root cause, but it does fix the issue with mid.

The symptom is this: Occasionally, mid() called with a starting position beyond the length of the string will return recognizable text from older LBUFs. I've added a check to mid() to handle this case. Steps to reproduce on a completely clean environment:

  1. @dol [lnum(10)]=th [iter(lnum(1000),lnum(1000),,%r)]
  2. th [mid(abc,50,50)]

@pdbogen
Copy link
Author

pdbogen commented Nov 11, 2014

Code was fixed w/o pull.

@pdbogen pdbogen closed this Nov 11, 2014
mrsenile added a commit that referenced this pull request Mar 8, 2016
@Eckspert Eckspert mentioned this pull request Jan 28, 2020
mrsenile added a commit that referenced this pull request Dec 10, 2020
game config_pull.sh will pull compile args from flatfile and load as default config for make config/make confsource
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.

1 participant