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

Update parson and fix json_object_set_value #983

Merged
merged 4 commits into from
Sep 17, 2021
Merged

Update parson and fix json_object_set_value #983

merged 4 commits into from
Sep 17, 2021

Conversation

francoromaniello
Copy link
Contributor

@francoromaniello francoromaniello commented Aug 22, 2021

The json module needs to update the parson dependency, the repository of parson have commits for memory leaks and more.
I made a git submodule to the repository to make it more easy to update.

EDIT: Also fixed json_object_set_value generate a crash if invalid value is passed

image
Image related to the crash of json_object_set_value

EDIT 2: it's required another pull to 1.9-dev ? is the correct branch master to make a pull ?

@francoromaniello francoromaniello changed the title Update parson Update parson and fix json_object_set_value Aug 22, 2021
@metita
Copy link

metita commented Aug 22, 2021

@dvander

JSON original repo has been receiving several commits since its release as a AMXX Module but hasn't received any update since then, this worth a watch i guess.

@dvander
Copy link
Member

dvander commented Aug 22, 2021

We can't include submodules to third-party repos since it exposes various risks. Two options: we either fork it into the AlliedModders team github, and keep the two in sync - or we copy and paste the files in. Since we already did the copy and paste here, and it's quite a small repository, that would be the easier route.

@metita
Copy link

metita commented Aug 22, 2021

I think we should just fork it (not sure why it was not like that before?) considering that in the long term it should be more easy to maintain and start working from there.

@Arkshine Arkshine merged commit 3289b3c into alliedmodders:master Sep 17, 2021
Arkshine pushed a commit that referenced this pull request Sep 17, 2021
* Remove parson folder

* add submodule parson

* FIX amxx_json_object_set_value generate a crash if invalid value is passed

* restore parson folder status
Th3-822 added a commit to Th3-822/amxmodx that referenced this pull request Nov 26, 2021
dvander pushed a commit that referenced this pull request Dec 3, 2021
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.

4 participants