1. 21 May, 2020 1 commit
  2. 19 May, 2020 4 commits
  3. 18 May, 2020 1 commit
  4. 14 May, 2020 1 commit
  5. 08 May, 2020 1 commit
    • Vivek Kumar Dutta's avatar
      uspd: Multiple fixes with test support · 5d1c78fd
      Vivek Kumar Dutta authored
      - Fixes from ci_cd branch Squashed in one, it include below fixes:
        -- Readme: Updated readme
        -- Updated api specification and tests
        -- Remove redundant code
        -- Fix '==' operation for boolean type
        -- Fix '!=' operation
        -- Fix output of del_object method
        -- Improved comparator algorithm for non integer values
        -- Added unit test cases
        -- Added functional api test cases
        -- Fixed static analysis errors
        -- Fixed cpd errors
      5d1c78fd
  6. 27 Apr, 2020 1 commit
  7. 20 Apr, 2020 1 commit
  8. 09 Apr, 2020 1 commit
  9. 30 Mar, 2020 2 commits
    • Daniel Danzberger's avatar
      delete_object: fix memleak and endless list growing · 4328f3ae
      Daniel Danzberger authored
      When delete_object is called, the list of path objects created is not
      beeing freed after calling del_object.
      This causes an endlessly growing of the list and repeating calls to
      del_object with old objects.
      
      Example:
      ---
      root@lappi:[ucwmp]:# ubus call usp.raw del_object '{"path": "Device.DHCPv4.Server.Pool.6"}'
      {
      	"status": true
      }
      root@lappi:[ucwmp]:# ubus call usp.raw del_object '{"path": "Device.DHCPv4.Server.Pool.6"}'
      {
      	"status": false,
      	"fault": 9005,
      	"status": false,
      	"fault": 9005
      }
      root@lappi:[ucwmp]:# ubus call usp.raw del_object '{"path": "Device.DHCPv4.Server.Pool.6"}'
      {
      	"status": false,
      	"fault": 9005,
      	"status": false,
      	"fault": 9005,
      	"status": false,
      	"fault": 9005
      }
      ---
      Signed-off-by: Daniel Danzberger's avatarDaniel Danzberger <daniel@dd-wrt.com>
      4328f3ae
    • Daniel Danzberger's avatar
      {add,del}_object: add "parameterKey" parameter · 99ddcf2f
      Daniel Danzberger authored
      With this commit, the "parameterKey" parameter is passed to the bbf
      library code instead of always passing "true".
      
      Example:
       ubus call usp add_object '{"path":"Device.xxx.yy.", "key":"bc123"}'
      Signed-off-by: Daniel Danzberger's avatarDaniel Danzberger <daniel@dd-wrt.com>
      99ddcf2f
  10. 28 Mar, 2020 1 commit
    • Daniel Danzberger's avatar
      Add get_safe method · 93155dcd
      Daniel Danzberger authored
      The get_safe method allows processing an array of objects without any
      filtering / parsing calls that causes segfaults and allow remote code injection by
      invalid path strings.
      
      Segfault causing request:
       ubus call usp get '{"path":"*[Device.DeviceInfo.Manufacturer]+[Device.DeviceInfo.ProductClass]"}'
      
      Safe version with invalid request:
       ubus call usp.raw get_safe '{"paths": ["*[Device.DeviceInfo.Manufacturer]+[Device.DeviceInfo.ProductClass]"]}'
      Signed-off-by: Daniel Danzberger's avatarDaniel Danzberger <daniel@dd-wrt.com>
      93155dcd
  11. 26 Feb, 2020 1 commit
  12. 19 Feb, 2020 2 commits
  13. 12 Feb, 2020 1 commit
  14. 07 Feb, 2020 5 commits
  15. 04 Feb, 2020 1 commit
  16. 24 Jan, 2020 1 commit
  17. 23 Jan, 2020 1 commit
  18. 22 Jan, 2020 2 commits
  19. 14 Dec, 2019 2 commits
  20. 01 Dec, 2019 1 commit
  21. 01 Nov, 2019 1 commit
  22. 31 Oct, 2019 1 commit
  23. 30 Oct, 2019 1 commit
  24. 18 Oct, 2019 1 commit
  25. 07 Oct, 2019 1 commit
  26. 26 Sep, 2019 2 commits
  27. 25 Sep, 2019 1 commit
  28. 04 Sep, 2019 1 commit