summaryrefslogtreecommitdiff
path: root/src/sdpd-request.c
AgeCommit message (Collapse)AuthorFilesLines
2012-12-11sdpd-request: Fix build errors due to unaligned memory accessSzymon Janc1-2/+10
This fix following compilation errors on ARM. CC src/bluetoothd-sdpd-request.o src/sdpd-request.c: In function ‘extract_des’: src/sdpd-request.c:186:17: error: cast increases required alignment of target type [-Werror=cast-align] src/sdpd-request.c:186:17: error: cast increases required alignment of target type [-Werror=cast-align] src/sdpd-request.c:210:17: error: cast increases required alignment of target type [-Werror=cast-align] src/sdpd-request.c:210:17: error: cast increases required alignment of target type [-Werror=cast-align] cc1: all warnings being treated as errors make[1]: *** [src/bluetoothd-sdpd-request.o] Error 1
2012-12-07Revert "Ensure config.h is included by using CPPFLAGS"Johan Hedberg1-0/+4
This reverts commit 8a03376544b046a84301847d1594f6c3674983ff. The patch needs to be split up and the gdbus/ changes were bogus compared to the original commit message. Conflicts: Makefile.am Makefile.obexd profiles/cyclingspeed/cyclingspeed.c profiles/heartrate/heartrate.c src/error.c
2012-12-05Ensure config.h is included by using CPPFLAGSLucas De Marchi1-4/+0
Instead of trying to include config.h in each file over the tree and possibly forgetting to include it, give a "-include config.h" argument to the compiler so it's guaranteed that a) it will be included for all source files and b) it will be the first header included. gdbus/ directory is left out, since it would break other projects using it.
2012-09-05sdpd-request: Fix build errors due to unaligned memory accessSzymon Janc1-29/+33
This fix number of build errors on ARM similar to one below. CC src/bluetooth-sdpd-request.o src/sdpd-request.c: In function extra_des: src/sdpd-request.c:181:5: error: cast increases required alignment of targettype [-Werror=cast-align]
2012-05-23sdp/build: Build fails when SDP_DEBUG enabledArek Lichwa1-1/+1
Enabling SDP_DEBUG prevents build to be done.
2012-04-13sdpd-request: Fix passing zero instead of NULLSyam Sidhardhan1-1/+1
2011-07-03Fix common misspelled wordsLucas De Marchi1-2/+2
Accounting of misspelled words, as detected by codespell: acording 2 ancilliary 1 appropiate 1 atribute 1 cant 1 comming 2 gracefull 1 lenght 1 mispelled 1 occured 1 occurences 1 ocurred 3 prefered 1 presense 1 reponse 1 seperate 1 succesful 1 successully 1 sucessfull 1 sucessfully 1
2011-05-15Fix unused variable warnings reported by GCC 4.6Johan Hedberg1-2/+2
2011-05-15Fix dead increments and assignments in sdp codeSzymon Janc1-1/+0
2011-05-10Fix C++ style commentsSzymon Janc1-9/+9
2011-05-10Remove not needed cast in sdp_set_cstate_pduSzymon Janc1-2/+2
2011-05-10Remove not needed data_left intialization in service_search_attr_reqSzymon Janc1-1/+1
2011-03-04Remove duplicated NULL check and debug messageSzymon Janc1-6/+2
2011-01-17Revert "Send an Invalid PDU Size Error Response for Service Search Req"Johan Hedberg1-1/+1
This reverts commit 3094ec7008735c80d35bd255ffc41e7bea2d3a3c. Commit 3094ec7008735c80d35bd255ffc41e7bea2d3a3c was supposed to fix TP/SERVER/SS/BI-01-C but it turns out it doesn't even affect the outcome of that test case (the code path is never traversed). Additionally the commit breaks TP/SERVER/SS/BI-02-C so it should be reverted.
2010-11-25sdpd header cleanupClaudio Takahasi1-1/+11
2010-10-27Get rid of redundant type casts from SDP codeJohan Hedberg1-3/+3
2010-08-25Send Invalid Syntax Error if Resp Size Less Than 0x07Angela Bartholomaus1-0/+9
Byte cnt range min 0x07 per Core v2.1, sec 4.61 for TP/SERVER/SA/BI-02-C
2010-08-25Send an Invalid PDU Size Error Resp for Service Attr Search ReqAngela Bartholomaus1-1/+1
Send error code 0x04 per CoreSpecv2.1, sec 4.4 for TP/SERVER/SSA/BI-02-C
2010-08-25Send an Invalid PDU Size Error Response for Service Attr ReqAngela Bartholomaus1-1/+1
Send error code 0x04 per CoreSpecv2.1, sec 4.4 for TP/SERVER/SA/BI-03-C
2010-08-25Send an Invalid PDU Size Error Response for Service Search ReqAngela Bartholomaus1-1/+1
Send error code 0x04 per CoreSpecv2.1, sec 4.4 for TP/SERVER/SS/BI-01-C
2010-06-08Fix redundant null check on calling free()Gustavo F. Padovan1-8/+4
Issues found by smatch static check: http://smatch.sourceforge.net/
2010-05-21Move logging.{c,h} to log.{c,h}Gustavo F. Padovan1-1/+1
Try to make log stuff more similar to ConnMan and oFono.
2010-05-07Remove extra spaces from sdpd-request.cJose Antonio Santos Cadenas1-9/+9
2010-03-24Check the return of getsockopt and getsockname logging the errorsLuiz Augusto Von Dentz1-4/+17
2010-01-01Update copyright informationMarcel Holtmann1-1/+1
2009-03-26Fix AttributeIdList parsingJohan Hedberg1-31/+63
The attribute ID list can have a mix of uint16 elements (a single attribute id) and uint32 elements (a range of attribute id's). The extract_des function was created with the assumption that lists passed to it always contain only one data type so extracting the attribute id list with it hasn't been possible. Before commit 02cd65fff0eac590c55968509c9023b691c69245 the SDP code would access invalid memory in the case of attribute id lists with mixed data types and after that commit the code would return a "invalid syntax" error to the SDP client (which is also not good). This patch adds a new struct to describe an element of this list so that the extract_attrs function is able to correctly parse each element.
2009-03-12Make use of size_t and ssize_t when possibleJohan Hedberg1-3/+3
2009-02-26Always remember to free the extract_des internal listJohan Hedberg1-7/+11
The pSeq list needs to be fully free'd when extract_des returns an error.
2009-02-26Require all parsed elements in extract_des to be of the same typeJohan Hedberg1-2/+6
The extract_des function returns just one element type to the caller so if there are mixed elements it'll be impossible for the caller to know how to handle the returned list.
2009-02-26Fix SDP data buffer parsingJohan Hedberg1-28/+94
This patch adds extra checks to make sure we never read past the end of the buffer.
2009-02-24Minor whitespace fixesJohan Hedberg1-1/+1
2009-01-29Fix mostly every warning caused by -Wsign-compareMarcel Holtmann1-6/+7
2009-01-16Fix memory leakJohan Hedberg1-1/+3
2009-01-16Bail out from extract_des if sdp_uuid_extract failsJohan Hedberg1-5/+5
2009-01-01Update copyright informationMarcel Holtmann1-1/+1
2008-12-23Add braces around debug statementsMarcel Holtmann1-2/+3
2008-12-20Use tabs instead of whitespacesMarcel Holtmann1-1/+1
2008-10-14Fix build error when SDP_DEBUG is enabledClaudio Takahasi1-2/+2
2008-09-11Hide the verbose SDP debug behind SDP_DEBUGMarcel Holtmann1-47/+47
2008-08-06Convert SDP *_safe functions to default APIMarcel Holtmann1-2/+2
2008-07-29Move hcid to src directory and rename it to bluetoothdMarcel Holtmann1-0/+960