Skip to content

Commit

Permalink
Fix MISRA 9.1 violation (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
leegeth authored Feb 25, 2021
1 parent 0f1faa9 commit 537d2ca
Show file tree
Hide file tree
Showing 29 changed files with 33 additions and 29 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log for coreJSON Library

## v3.0.1 (February 2021)
- [#86]([#84](https://github.com/FreeRTOS/coreJSON/pull/86) Fix MISRA 9.1 violation.
- [#84](https://github.com/FreeRTOS/coreJSON/pull/84), [#82](https://github.com/FreeRTOS/coreJSON/pull/82) and [#80](https://github.com/FreeRTOS/coreJSON/pull/80) Documentation updates and fixes.

## v3.0.0 (December 2020)
- [#74](https://github.com/FreeRTOS/coreJSON/pull/74) Add `JSON_Iterate` function to iterate over items in a JSON collection.
- [#74](https://github.com/FreeRTOS/coreJSON/pull/74) Add `JSONInvalid` enum with the value 0 to `JSONTypes_t`. This change is not backwards compatible.
Expand Down
2 changes: 1 addition & 1 deletion docs/doxygen/config.doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "coreJSON"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = "v3.0.0"
PROJECT_NUMBER = "v3.0.1"

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
2 changes: 1 addition & 1 deletion manifest.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name : "coreJSON"
version: "v3.0.0"
version: "v3.0.1"
description: |
"A parser strictly enforcing the ECMA-404 JSON standard, suitable for microcontrollers. \n"
license: "MIT"
4 changes: 2 additions & 2 deletions source/core_json.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down Expand Up @@ -1620,7 +1620,7 @@ JSONStatus_t JSON_SearchConst( const char * buf,
JSONTypes_t * outType )
{
JSONStatus_t ret;
size_t value;
size_t value = 0U;

if( ( buf == NULL ) || ( query == NULL ) ||
( outValue == NULL ) || ( outValueLength == NULL ) )
Expand Down
2 changes: 1 addition & 1 deletion source/include/core_json.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/include/core_json_annex.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/include/skipGeneric.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/JSON_Iterate/JSON_Iterate_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/JSON_Search/JSON_Search_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/JSON_Validate/JSON_Validate_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/skipAnyLiteral/skipAnyLiteral_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/skipCollection/skipCollection_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/skipEscape/skipEscape_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/skipNumber/skipNumber_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/skipSpace/skipSpace_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/skipString/skipString_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/skipUTF8/skipUTF8_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipAnyLiteral.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipAnyScalar.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipCollection.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipEscape.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipGeneric.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipNumber.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipSpace.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipSpaceAndComma.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipString.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipUTF8.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/unit-test/core_json_utest.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.0
* coreJSON v3.0.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down

0 comments on commit 537d2ca

Please sign in to comment.