Libaaudio Integer Overflow Sanitizer Bug Fix

Used built in arithmetic overflow checking function in areas where integer overflow sanitizer exposed bugs with native test test_atomic_fifo.

Bug: 143307218

Test: Ran the following native tests:
  test_atomic_fifo
  test_aaudio_recovery
  test_aaudio_marshalling
  test_n_streams
  test_bad_disconnect
  test_various
  test_session_id
  test_aaudio_monkey
  test_attributes
  test_interference
  test_flowgraph
  test_return_stop
  test_stop_hang
  test_full_queue
  test_histogram
Ran the following Cts tests:
  CtsNativeMediaAAudioTestCases

Change-Id: Ie20ffc1a535dec22d81ec27918e2d3eadda21be2
1 file changed